joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a00
Capabilities:
Delete file

Disassembly:
push 0x34
push 0x4185b8
call fcn.0040ec0c
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x28], bl
mov dword [ebp - 0x24], ebx
xor edi, edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
jne 0x402a2f
or dword [ebp - 4], 0xffffffff
xor eax, eax
jmp 0x402bcf
mov ecx, 0x41719c
call fcn.004073dd
push eax
call fcn.00407491
pop ecx
mov dword [ebp - 0x38], eax
mov ecx, 0x4171b8
call fcn.004073dd
push eax
call fcn.00407491
pop ecx
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
push dword [ebp - 0x38]
call fcn.00407f75
add esp, 0x10
test eax, eax
je 0x402a8d
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
call fcn.0040118d
pop ecx
test eax, eax
je 0x402a8d
xor esi, esi
inc esi
mov edi, esi
mov dword [ebp - 0x20], esi
jmp 0x402a90
xor esi, esi
inc esi
cmp edi, ebx
jne 0x402b8a
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x24]
push eax
push ebx
push 0x11
push ebx
call fcn.0040236d
mov byte [ebp - 0x19], al
mov dword [ebp - 0x20], ebx
add esp, 0x10
cmp dword [ebp - 0x20], ebx
jne 0x402b7e
mov al, byte [ebp - 0x19]
cmp byte [ebp - 0x28], al
ja 0x402b7e
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x24]
call fcn.004083fc
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x402b4a
push ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x40]
call fcn.0040197f
add esp, 0x10
test eax, eax
je 0x402b41
push dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x30]
call fcn.00402921
pop ecx
call fcn.00401f02
test eax, eax
je 0x402b38
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
call fcn.0040118d
pop ecx
test eax, eax
je 0x402b41
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x44]
push dword [ebp - 0x38]
call fcn.004080e1
add esp, 0x10
mov dword [ebp - 0x20], esi
jmp 0x402b41
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], ebx
push dword [ebp - 0x40]
call dword [sym.imp.kernel32.dll_DeleteFileW]
cmp dword [ebp - 0x20], ebx
jne 0x402b7e
push 0x3a98
call dword [sym.imp.kernel32.dll_Sleep]
movzx eax, byte [ebp - 0x28]
inc eax
mov byte [ebp - 0x28], al
push dword [ebp - 0x24]
call fcn.00407b85
pop ecx
lea eax, [ebp - 0x24]
push eax
push ebx
push esi
push dword [ebp - 0x28]
call fcn.0040236d
jmp 0x402aae
push dword [ebp - 0x24]
call fcn.00407b85
pop ecx
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x20], ebx
je 0x402b9e
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x402b9e
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ebp - 0x3c], esi
push dword [ebp - 0x38]
call fcn.00407b85
pop ecx
push dword [ebp - 0x44]
call fcn.00407b85
pop ecx
jmp 0x402bc8
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
call fcn.0040ec47
ret
Function at 0x404742
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x40474d
xor eax, eax
pop edi
ret
mov edx, 0xff
cmp edi, 8
push esi
not eax
jb 0x4047ff
push ebx
mov esi, edi
shr esi, 3
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x416950]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x416950]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x416950]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x416950]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x416950]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x416950]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x416950]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x416950]
inc ecx
sub edi, 8
dec esi
jne 0x404764
pop ebx
test edi, edi
je 0x404818
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x416950]
inc ecx
dec edi
jne 0x404803
not eax
pop esi
pop edi
ret

Function at 0x40481d
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
movsx edx, dl
mov eax, dword [ecx]
push esi
xor edx, eax
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x416950]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
pop esi
xor eax, dword [edx*4 + 0x416950]
mov dword [ecx + 8], eax
ret

Function at 0x404e92
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, esp
push ebp
mov ebp, dword [edi + 0xc]
imul ebp, dword [edi + 0x10]
cmp byte [esi], 0
je 0x404ec2
push 0
lea eax, [edi + 0x10]
push eax
push ebp
push dword [edi + 8]
push dword [esi + 4]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x404ebd
mov byte [esi + 8], 1
mov eax, dword [edi + 0x10]
jmp 0x404eea
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + ebp]
cmp edx, eax
jbe 0x404ed3
sub eax, ecx
mov ebp, eax
mov eax, dword [esi + 0x14]
push ebp
add eax, ecx
push eax
push dword [edi + 8]
call fcn.00409fb0
sub esp, 0xfffffff4
add dword [esi + 0x1c], ebp
mov eax, ebp
xor edx, edx
div dword [edi + 0xc]
pop ebp
pop edi
ret
Function at 0x405adb
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
xor ebx, ebx
push edi
cmp dword [esi], ebx
jne 0x405b7a
cmp dword [esi + 4], 0xffffffff
jne 0x405b7a
lea edi, [esi + 0x244]
push edi
push 0x103
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x405b09
sub eax, edi
sar eax, 1
lea eax, [esi + eax*2 + 0x242]
movzx ecx, word [eax]
cmp cx, 0x5c
je 0x405b3a
cmp cx, 0x2f
je 0x405b3a
push 0x2f
pop ecx
mov word [eax + 2], cx
xor ecx, ecx
mov word [eax + 4], cx
push 0x20
push pe_nt_image_headers32
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x14]
push eax
mov byte [eax], bl
mov byte [eax + 1], 1
mov byte [eax + 0x10], bl
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0xc], ebx
call fcn.00405107
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ebx
sub eax, 0xfffffe00
jmp 0x405b7f
mov eax, 0x1000000
pop edi
pop ebx
pop ecx
ret 8

Function at 0x40604c
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf0
cmp dword [ebp + 8], 0
push ebx
push edi
mov ebx, 0x104
je 0x4060ca
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x410]
push eax
call fcn.00408a75
lea eax, [ebp - 0x410]
sub esp, 0xfffffff4
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x40607e
sub eax, edx
sar eax, 1
je 0x4060a9
lea eax, [ebp + eax*2 - 0x412]
movzx ecx, word [eax]
cmp cx, 0x2f
je 0x4060a4
cmp cx, 0x5c
jne 0x4060a9
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4060ca
push 0
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
mov edi, dword [ebp + 0xc]
movzx ecx, word [edi]
or cx, cx
je 0x4061a9
mov eax, edi
mov edx, edi
movzx ecx, cx
cmp cx, 0x2f
je 0x4060ec
cmp cx, 0x5c
jne 0x4060ee
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
or cx, cx
jne 0x4060e0
cmp eax, edi
je 0x406130
sub eax, edi
sar eax, 1
push esi
add eax, eax
mov esi, eax
push esi
lea eax, [ebp - 0x410]
push edi
push eax
call fcn.00409fb0
xor eax, eax
mov word [ebp + esi - 0x410], ax
lea eax, [ebp - 0x410]
push eax
push dword [ebp + 8]
call fcn.0040604c
sub esp, 0xffffffec
pop esi
xor eax, eax
mov word [ebp - 0x208], ax
cmp dword [ebp + 8], eax
je 0x406151
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call fcn.00408a75
sub esp, 0xfffffff4
xor eax, eax
mov word [ebp - 2], ax
lea eax, [ebp - 0x208]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x406160
sub eax, edx
sar eax, 1
sub ebx, eax
push ebx
lea eax, [ebp + eax*2 - 0x208]
push edi
push eax
call fcn.00408a75
xor eax, eax
mov word [ebp - 2], ax
sub esp, 0xfffffff4
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4061a9
push 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
pop edi
pop ebx
leave
ret
Function at 0x4067ca
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push esi
mov esi, dword [sym.imp.user32.dll_GetSystemMetrics]
push ebx
push 0
call esi
push 1
mov dword [ebp - 4], eax
call esi
mov edi, 0x400
push 0x1e
mov dword [ebp - 0x10], eax
pop ebx
mov esi, 0xba
mov dword [ebp - 0xc], 0x140
mov dword [ebp - 8], 0xf0
cmp dword [ebp - 4], edi
jb 0x40680e
cmp eax, 0x300
jae 0x406868
mov eax, dword [ebp - 4]
fild dword [ebp - 4]
test eax, eax
jge 0x40681e
fadd qword [0x417610]
fld qword [0x417638]
fmul st(1)
call fcn.0040eb96
fild dword [ebp - 0x10]
mov ebx, eax
mov eax, dword [ebp - 0x10]
test eax, eax
jge 0x40683d
fadd qword [0x417610]
fld qword [0x417630]
fmul st(1)
call fcn.0040eb96
fld qword [0x417628]
fmul st(2), st(0)
mov esi, eax
fxch st(2)
call fcn.0040eb96
fmulp st(1)
mov dword [ebp - 0xc], eax
call fcn.0040eb96
mov dword [ebp - 8], eax
cmp dword [ebp - 4], edi
jbe 0x406890
mov eax, dword [ebp - 4]
fild dword [ebp - 4]
test eax, eax
jge 0x40687d
fadd qword [0x417610]
fsub qword [0x417620]
fmul qword [0x417618]
call fcn.0040eb96
add ebx, eax
push 0x10
push pe_nt_image_headers32
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ecx, dword [ebp - 8]
mov dword [eax + 8], ecx
mov edi, dword [ebp - 0xc]
push 0x41bb9c
mov dword [eax + 0xc], edi
xor ecx, ecx
push ecx
push eax
push 0x4065f8
push ecx
push ecx
mov dword [eax], ebx
mov dword [eax + 4], esi
call dword [sym.imp.kernel32.dll_CreateThread]
pop ebx
pop esi
pop edi
leave
ret

Function at 0x406e71
Capabilities:
Write file on windows

Disassembly:
push 0x14
push 0x4183e8
call fcn.0040ec0c
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
push esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call fcn.0040197f
add esp, 0x10
test eax, eax
je 0x406f24
mov ecx, 0x417570
call fcn.004073dd
mov edi, eax
push edi
push dword [ebp - 0x1c]
call fcn.00408b20
pop ecx
pop ecx
cmp eax, esi
je 0x406ec2
mov byte [eax + 3], 0x6d
jmp 0x406ead
push edi
call fcn.00407b73
pop ecx
push esi
push 0x80
push 2
push esi
push esi
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileW]
mov edi, eax
push esi
cmp edi, 0xffffffff
je 0x406f03
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.kernel32.dll_WriteFile]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x406f12
push esi
push esi
push 0x2bf
call fcn.00401308
add esp, 0x10
push dword [ebp - 0x1c]
call fcn.00407b73
pop ecx
jmp 0x406f24
or dword [ebp - 4], 0xffffffff
call fcn.0040ec47
ret
Function at 0x406fe4
Capabilities:
Enumerate files on windows

Disassembly:
push 0x25c
push 0x418578
call fcn.0040ec0c
and dword [ebp - 4], 0
push 0x250
push 0
lea eax, [ebp - 0x26c]
push eax
call fcn.0040d1e0
sub esp, 0xfffffff4
mov ecx, 0x417584
call fcn.004073dd
push eax
call fcn.00407491
mov edi, eax
mov dword [esp], 0x2800
push pe_nt_image_headers32
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
push dword [ebp + 8]
push esi
call dword [sym.imp.kernel32.dll_lstrcpyW]
push edi
push esi
call dword [sym.imp.kernel32.dll_lstrcatW]
push edi
call fcn.00407b73
pop ecx
lea eax, [ebp - 0x26c]
push eax
push esi
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40709d
cmp word [ebp - 0x240], 0x2e
je 0x407082
test byte [ebp - 0x26c], 0x10
jne 0x407082
lea eax, [ebp - 0x240]
push eax
push dword [ebp + 8]
call fcn.00406f2e
pop ecx
pop ecx
lea eax, [ebp - 0x26c]
push eax
push esi
call dword [sym.imp.kernel32.dll_FindNextFileW]
or eax, eax
jne 0x40705e
jmp 0x40709d
or dword [ebp - 4], 0xffffffff
call fcn.0040ec47
ret

Function at 0x40718f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
push esi
push 1
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [0x41acb4], eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x4070a7
push esi
push esi
call dword [sym.imp.kernel32.dll_CreateThread]
pop esi
leave
ret

Function at 0x4071bf
Capabilities:
Create thread
Terminate process

Disassembly:
push 0x10
push 0x4185c8
call fcn.0040ec0c
xor edi, edi
mov dword [ebp - 4], edi
push 0x19000
push pe_nt_image_headers32
mov esi, dword [sym.imp.kernel32.dll_GlobalAlloc]
call esi
mov dword [0x41bbac], eax
push 0x2800
push pe_nt_image_headers32
call esi
mov dword [ebp - 0x1c], eax
push edi
call dword [sym.imp.ole32.dll_OleInitialize]
test eax, eax
jne 0x40726c
lea eax, [ebp - 0x1c]
push eax
call fcn.00402a00
pop ecx
test eax, eax
jne 0x407216
push 0x7530
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x4071fb
call fcn.00401f02
test eax, eax
jne 0x407226
push edi
call dword [sym.imp.kernel32.dll_ExitProcess]
push dword [ebp - 0x1c]
call fcn.00406daf
pop ecx
push dword [ebp - 0x1c]
call fcn.00406fe4
pop ecx
lea eax, [ebp - 0x20]
push eax
push edi
push edi
push 0x406b58
push edi
push edi
mov esi, dword [sym.imp.kernel32.dll_CreateThread]
call esi
lea eax, [ebp - 0x20]
push eax
push edi
push edi
push 0x406b41
push edi
push edi
call esi
call fcn.0040718f
push dword [ebp - 0x1c]
call fcn.00406c2d
pop ecx
jmp 0x407289
push edi
push edi
push edi
push 0x47
jmp 0x407281
call fcn.00401308
add esp, 0x10
or dword [ebp - 4], 0xffffffff
call fcn.0040ec47
ret
Function at 0x40770b
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push 0x18
push 0x4181e8
call fcn.0040ec0c
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov eax, 0x5a4d
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
cmp ax, word [edx]
je 0x407734
or dword [ebp - 4], 0xffffffff
xor eax, eax
jmp 0x4077b2
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x40772c
cmp dword [eax + 0x74], ecx
je 0x40772c
mov esi, dword [eax + 0x78]
add esi, edx
mov edi, dword [esi + 0x20]
mov ebx, dword [esi + 0x24]
add edi, edx
mov eax, dword [esi + 0x1c]
add ebx, edx
add eax, edx
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [esi + 0x18]
jae 0x4077ab
mov ecx, dword [edi + eax*4]
add ecx, edx
call fcn.00407885
cmp eax, dword [ebp + 0xc]
jne 0x407799
cmp edx, dword [ebp + 0x10]
jne 0x407799
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
movzx eax, word [ebx + eax*2]
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp + 0x14]
add eax, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ebp - 0x20], 1
jmp 0x4077ab
inc dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
jmp 0x407762
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
call fcn.0040ec47
ret
Function at 0x4081fe
Capabilities:
Create bits job
Get common file path

Disassembly:
push 0x38
push 0x4182c8
call fcn.0040ec0c
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
jne 0x408225
or dword [ebp - 4], 0xffffffff
xor eax, eax
jmp 0x4083ce
cmp dword [0x41bbb0], ebx
jne 0x408262
push 2
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, ebx
jl 0x40821a
push 0x41bbb0
push 0x4154fc
push 4
push ebx
push 0x41551c
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x40821a
cmp dword [0x41bbb0], ebx
je 0x40839e
mov edi, 0x400
push edi
push pe_nt_image_headers32
mov esi, dword [sym.imp.kernel32.dll_GlobalAlloc]
call esi
mov dword [ebp - 0x2c], eax
push eax
push 0xc8
push 0xa
call fcn.00407c2b
add esp, 0xc
mov eax, dword [0x41bbb0]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x48]
push edx
push ebx
push dword [ebp - 0x2c]
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jl 0x408395
push edi
push pe_nt_image_headers32
call esi
mov dword [ebp - 0x24], eax
push edi
push pe_nt_image_headers32
call esi
mov esi, eax
push dword [ebp - 0x24]
push 0x1ff
call dword [sym.imp.kernel32.dll_GetTempPathW]
push esi
push ebx
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
test eax, eax
je 0x408380
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push esi
push dword [ebp + 8]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp eax, ebx
jl 0x408380
mov dword [ebp - 0x38], 0xff676980
or dword [ebp - 0x34], 0xffffffff
push ebx
push ebx
push ebx
call dword [sym.imp.kernel32.dll_CreateWaitableTimerW]
mov edi, eax
push ebx
push ebx
push ebx
push 0x3e8
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.kernel32.dll_SetWaitableTimer]
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push eax
call dword [ecx + 0x38]
cmp eax, ebx
jl 0x408363
cmp dword [ebp - 0x20], 6
jne 0x408357
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov dword [ebp - 0x28], 1
cmp dword [ebp - 0x20], 6
je 0x408363
cmp dword [ebp - 0x20], 4
je 0x408363
cmp dword [ebp - 0x20], 5
jne 0x40831c
push edi
call dword [sym.imp.kernel32.dll_CancelWaitableTimer]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp - 0x20], 6
je 0x408380
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
cmp dword [ebp - 0x28], ebx
jne 0x40838c
push esi
call fcn.00407b85
pop ecx
push dword [ebp - 0x24]
call fcn.00407b85
pop ecx
push dword [ebp - 0x2c]
call fcn.00407b85
pop eax
mov eax, dword [0x41bbb0]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [0x41bbb0], ebx
jmp 0x4083c7
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
call fcn.0040ec47
ret
Function at 0x4083fc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x10
push 0x418348
call fcn.0040ec0c
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
cmp dword [0x41be1c], ebx
jne 0x40841a
call fcn.004083d4
push 0x41be00
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov esi, dword [sym.imp.kernel32.dll_GetTickCount]
call esi
mov edi, 0x2710
jmp 0x408441
push 0xfa
call dword [sym.imp.kernel32.dll_Sleep]
call esi
sub eax, dword [0x41be18]
cmp eax, edi
jb 0x408434
call esi
mov dword [0x41be18], eax
mov dword [ebp - 4], ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x41bde0
call fcn.00408514
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x408493
push 0x1f4
call dword [sym.imp.kernel32.dll_Sleep]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004081fe
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
jmp 0x408493
or dword [ebp - 4], 0xffffffff
push 0x41be00
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x1c]
call fcn.0040ec47
ret

Function at 0x40af6a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x41b708]
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x40afb6
call esi
mov edi, eax
cmp edi, ebx
je 0x40af9c
mov dword [0x41b708], 1
jmp 0x40afbf
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x40afb1
push 2
pop eax
mov dword [0x41b708], eax
jmp 0x40afb6
mov eax, dword [0x41b708]
cmp eax, 1
jne 0x40b040
cmp edi, ebx
jne 0x40afd2
call esi
mov edi, eax
cmp edi, ebx
jne 0x40afd2
xor eax, eax
jmp 0x40b09c
mov eax, edi
cmp word [edi], bx
je 0x40afe7
inc eax
inc eax
cmp word [eax], bx
jne 0x40afd9
inc eax
inc eax
cmp word [eax], bx
jne 0x40afd9
mov esi, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40b035
push eax
call fcn.0040bb40
pop ecx
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40b035
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x40b032
push dword [ebp - 4]
call fcn.00402ef3
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x40b09c
cmp eax, 2
je 0x40b049
cmp eax, ebx
jne 0x40afcb
call dword [sym.imp.kernel32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
je 0x40afcb
cmp byte [esi], bl
je 0x40b067
inc eax
cmp byte [eax], bl
jne 0x40b05d
inc eax
cmp byte [eax], bl
jne 0x40b05d
sub eax, esi
inc eax
push eax
mov dword [ebp - 8], eax
call fcn.0040bb40
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x40b086
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
jmp 0x40afcb
push dword [ebp - 8]
push esi
push edi
call fcn.00409fb0
add esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b751
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push esi
push edi
mov edi, 0x4149c0
push edi
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
jne 0x40b76c
push edi
call fcn.0040a55c
pop ecx
mov edi, eax
test edi, edi
je 0x40b8d4
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x414a0c
push edi
call esi
push 0x414a00
push edi
mov dword [0x41b70c], eax
call esi
push 0x4149f4
push edi
mov dword [0x41b710], eax
call esi
push 0x4149ec
push edi
mov dword [0x41b714], eax
call esi
cmp dword [0x41b70c], 0
mov esi, dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [0x41b718], eax
je 0x40b7d5
cmp dword [0x41b710], 0
je 0x40b7d5
cmp dword [0x41b714], 0
je 0x40b7d5
test eax, eax
jne 0x40b7f9
mov eax, dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [0x41b710], eax
mov eax, dword [sym.imp.kernel32.dll_TlsFree]
mov dword [0x41b70c], 0x40b42e
mov dword [0x41b714], esi
mov dword [0x41b718], eax
call dword [sym.imp.kernel32.dll_TlsAlloc]
mov dword [0x41a3f4], eax
cmp eax, 0xffffffff
je 0x40b8d9
push dword [0x41b710]
push eax
call esi
test eax, eax
je 0x40b8d9
call fcn.0040a846
push dword [0x41b70c]
call fcn.0040b341
push dword [0x41b710]
mov dword [0x41b70c], eax
call fcn.0040b341
push dword [0x41b714]
mov dword [0x41b710], eax
call fcn.0040b341
push dword [0x41b718]
mov dword [0x41b714], eax
call fcn.0040b341
mov dword [0x41b718], eax
add esp, 0x10
call fcn.004092fa
test eax, eax
je 0x40b8d4
push 0x40b622
push dword [0x41b70c]
call fcn.0040b3bc
pop ecx
call eax
cmp eax, 0xffffffff
mov dword [0x41a3f0], eax
je 0x40b8d4
push 0x214
push 1
call fcn.0040bb85
mov esi, eax
test esi, esi
pop edi
pop ecx
je 0x40b8d4
push esi
push dword [0x41a3f0]
push dword [0x41b714]
call fcn.0040b3bc
pop ecx
call eax
test eax, eax
je 0x40b8d4
push 0
push esi
call fcn.0040b4a8
pop ecx
pop ecx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
xor eax, eax
inc eax
jmp 0x40b8db
call fcn.0040b46b
xor eax, eax
pop edi
pop esi
ret