joyce8/EMBER2024-capa huggingface dataset:
Function at 0x9ffdca
Capabilities:
Packed with generic packer

Disassembly:
push cx
mov byte [esp + 0xc], al
push word [esp + 8]
mov dword [esp + 0x1c], ebx
pushfd
jmp 0x9ffe21
mov dword [esp + 0x10], edx
pushfd
pushfd
mov dword [esp + 3], eax
push edx
jmp 0x9ffdb4
mov byte [esp + 0x13], bl
mov word [esp + 1], ax
mov dword [esp + 0x38], ebp
call fcn.009ffdd7
pushfd
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
jmp 0x9ffe6c
push dword [esp + 1]
mov dword [esp + 3], ebp
lea esp, [esp]
lea esp, [esp + 4]
mov dword [esp + 0x1c], esp
pushal
jmp 0x9ffded
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
jmp 0x9ff070
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x9ffe4d

Function at 0x9ffdd7
Capabilities:
Access peb ldr_data
Packed with generic packer

Disassembly:
pushal
mov word [esp + 0x12], ax
push dword [esp + 0x23]
jmp 0x9ffdff
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x401443
pop dword [ebp - 0x50]
mov eax, 0xff0975ea
add eax, 0x1369e59
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xf86340e8
add dword [ebp - 0x60], 0x55ef0463
mov dword [ebp - 0x5c], 0x6cfa0d74
add dword [ebp - 0x5c], 0xc5393ed1
mov dword [ebp - 0x58], 0xe35d4211
sub dword [ebp - 0x58], 0x9710fde3
mov dword [ebp - 0x54], 0xa85cb1b0
sub dword [ebp - 0x54], 0xa85cb1b0
lea eax, [ebp - 0x60]
push eax
mov eax, 0xc4d3fed0
add eax, 0x3b6c8234
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x41e0aca4
add dword [ebp - 0x60], 0x3291bcb2
mov dword [ebp - 0x5c], 0xea72eb41
sub dword [ebp - 0x5c], 0xa90689cc
mov dword [ebp - 0x58], 0x4b0a12d9
add dword [ebp - 0x58], 0x18655993
mov dword [ebp - 0x54], 0xbf6f4aaa
sub dword [ebp - 0x54], 0xbf6f4aaa
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x53aac8fa
sub eax, 0x536a47fa
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x38592
push 0
call eax
mov ecx, 0xbd1fd31e
sub ecx, 0xbd1f8ae3
xor edi, edi
add edi, eax
mov esi, 0x1e6eb3f6
add esi, 0xe1d8300a
add esi, dword [ebp - 0x50]
mov ebx, 0xeb4eb4d3
add dword [ebp - 0x28], 0xde9b4013
mov edx, dword [esi]
add edx, ebx
sub dword [ebp - 8], esi
mov dword [edi], edx
xor dword [ebp - 0x3c], 0x332f4a1c
add edi, 4
add esi, 0x2867db78
sub esi, 0x2867db74
loop 0x401561
add eax, 0xaf030bfc
add eax, 0x50fe07c3
xor ebx, ebx
add ebx, eax
add eax, 0xbf1a1229
add eax, 0x40e5eddc
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a2f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065ec
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x42a2f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42a2f0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x40682a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40684b
jl 0x406842
test edi, edi
jne 0x40684b
xor eax, eax
xor edx, edx
jmp 0x40690c
cmp dword [ebx + 0x38], 0
je 0x406860
push eax
push edi
push dword [ebp + 8]
call fcn.00406912
jmp 0x40690c
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4068a7
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4068a7
cmp eax, edi
jb 0x406881
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00408440
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4068ad
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x406901
mov ecx, ebx
call fcn.004060c1
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4068ec
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040ff78
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x406901
jmp 0x4068bf
test edx, edx
je 0x406901
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040ff78
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x407de3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407e22
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407e22
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407e22
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407e22
cmp dword [ecx + 0x74], 0xe
jbe 0x407e22
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x416732
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4294bc
push 0x4294b4
push str.FlsAlloc
push 0x1e
call fcn.0041655f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416766
push dword [ebp + 8]
mov ecx, esi
call dword [0x425164]
call esi
jmp 0x41676c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4167b0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4294cc
push 0x4294c4
push str.FlsGetValue
push 0x20
call fcn.0041655f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4167e7
push dword [ebp + 8]
mov ecx, esi
call dword [0x425164]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x418dfc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418c6d

Function at 0x4191f6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407f50
mov eax, dword [0x47b340]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00415f6b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x419238
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x419394
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00423500
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x47cf28]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041a1ed
mov ecx, dword [esi*4 + 0x47cf28]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41938d
cmp eax, dword [edi + ecx + 0x24]
jne 0x41938d
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41938d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a1ed
add esp, 0x14
test edx, edx
jl 0x41938d
jg 0x419303
test eax, eax
jb 0x41938d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41938d
jl 0x41931d
cmp dword [ebp - 0x1008], eax
ja 0x41938d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41933b
test ebx, ebx
je 0x419374
cmp ecx, edi
jae 0x419374
mov al, byte [ecx]
cmp al, 0xd
jne 0x419355
lea eax, [edi - 1]
cmp ecx, eax
jae 0x419361
cmp byte [ecx + 1], 0xa
jne 0x419361
inc ecx
jmp 0x419361
movzx eax, al
movsx eax, byte [eax + 0x47b618]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41933b
cmp edx, ebx
jne 0x41933b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x419392
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004071da
leave
ret
Function at 0x41968b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47cf28]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4196cb
cmp byte [ebx], 0xa
jne 0x4196cb
or byte [eax + edi + 0x28], 4
jmp 0x4196d0
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4197ce
mov al, byte [edx]
cmp al, 0x1a
je 0x4197b0
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4196ff
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x419724
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41972e
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4196e1
jmp 0x4197ce
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4197ab
cmp dword [ebp - 0xc], 0
je 0x4197ab
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47cf28]
test byte [eax + edi + 0x28], 0x48
je 0x419785
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x419770
mov byte [esi], dl
jmp 0x419781
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47cf28]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4197ce
cmp byte [ebp - 1], 0xa
jne 0x419794
cmp esi, ebx
jne 0x419794
mov byte [esi], 0xa
jmp 0x4197cd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041a20b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4197ce
mov byte [esi], 0xd
jmp 0x4197cd
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47cf28]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4197ca
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4197ce
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4197d7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47cf28]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41981a
cmp word [esi], dx
jne 0x41981a
or byte [edi + eax + 0x28], 4
jmp 0x41981f
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x419972
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x419952
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x419861
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x419897
cmp eax, edx
jae 0x4198a3
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x419839
jmp 0x419972
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41994e
cmp dword [ebp - 0x14], 0
je 0x41994e
mov eax, dword [ebx*4 + 0x47cf28]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x419926
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4198ef
mov word [esi], cx
jmp 0x419922
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47cf28]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47cf28]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47cf28]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x419972
pop ebx
cmp word [ebp - 4], bx
jne 0x419937
cmp esi, dword [ebp + 0xc]
jne 0x419937
mov word [esi], bx
jmp 0x41996f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041a20b
add esp, 0x10
cmp word [ebp - 4], bx
je 0x419972
push 0xd
jmp 0x41996b
mov ecx, dword [ebx*4 + 0x47cf28]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419969
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419972
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41b769
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41b806
push ebx
push esi
call fcn.0041b732
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041a3b7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41b7b3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b805
push edi
push eax
call fcn.00415136
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41b7d3
call fcn.00414f0c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b804
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041a3b7
add esp, 0x20
test eax, eax
jne 0x41b7f2
push edi
call fcn.00414f0c
jmp 0x41b7fa
push ebx
call fcn.00414f0c
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x423300
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42332d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42332d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x424000
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
push str.Success_created.
push 0x47c678
mov ebx, ecx
call fcn.00401160
push eax
call fcn.00401e70
push 8
call fcn.00407197
mov esi, eax
add esp, 0x10
test esi, esi
je 0x424062
push 4
call fcn.00407197
add esp, 4
test eax, eax
je 0x424040
mov dword [eax], 0x424bb0
jmp 0x424042
xor eax, eax
lea edi, [esi + 4]
push edi
push 0
push eax
push 0x401e50
push 0
push 0
call fcn.0040e516
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x42409d
jmp 0x424064
xor esi, esi
cmp dword [esi + 4], 0
je 0x4240aa
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [esi + 4], eax
je 0x4240b1
push 0
push dword [esi + 4]
push dword [esi]
call fcn.004050d5
add esp, 0xc
test eax, eax
jne 0x4240b8
push 8
push esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.004071c7
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
ret
push 6
mov dword [edi], 0
call fcn.0040528b
push 1
call fcn.0040528b
push 5
call fcn.0040528b
push 2
call fcn.0040528b
int3
Function at 0x407284
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004098cc
test esi, esi
jne 0x4072ba
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00409a54
jmp 0x4072d8
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004071c8
mov edi, eax
test esi, esi
je 0x4072d8
cmp dword [ebx], 0
je 0x4072d8
dec esi
jmp 0x4072c1
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4084e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004089a0
mov byte [esp], al
cmp byte [esp], 0
jne 0x408669
test edi, edi
je 0x408669
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4085a9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408584
cmp edi, 0xffffffff
je 0x408545
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408545
mov byte [esp], 0
jmp 0x408669
cmp dword [esi], 1
jg 0x408584
cmp dword [esi], 0
jne 0x408576
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408576
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408669
lea eax, [esp + 0xc]
call fcn.004081c0
dec ebp
test ebp, ebp
jg 0x40852a
cmp edi, 0xffffffff
je 0x4085a9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4085a7
mov byte [esp], 0
jmp 0x408669
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4084ee
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4085a9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004086e4
mov edx, eax
mov ebx, dword [0x6e48fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40860d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40860b
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40860d
xor edi, edi
cmp byte [esp], 0
je 0x408633
mov ebx, dword [esi]
test bl, 1
jne 0x408649
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408613
mov byte [esp + 1], 1
jmp 0x408649
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408633
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4085c0
cmp byte [esp], 0
je 0x408669
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x409528
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x6e405c], 0
je 0x40958f
cmp word [0x6e4348], 0xd7b2
jne 0x409551
cmp dword [0x6e4350], 0
jbe 0x409551
mov eax, 0x6e4344
call dword [0x6e4360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x4095bc
call fcn.0040a160
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x6da036], 0
jne 0x4095ab
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40978c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x6da038], 0
je 0x4097b7
mov edx, edi
mov eax, esi
call dword [0x6da038]
mov ebx, eax
jmp 0x4097c8
mov eax, 8
call fcn.00406f00
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x6e405d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409754
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x4097f8
mov eax, ebx
call fcn.00406f1c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40d5a4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40d709
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004098cc
cmp si, word [0x6daa10]
jb 0x40d63c
cmp si, word [0x6dac10]
ja 0x40d63c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40d63c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x6daa10]
jae 0x40d616
mov edi, ebx
dec edi
jmp 0x40d637
cmp si, word [ebx*8 + 0x6daa10]
jbe 0x40d626
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40d637
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x6daa14]
call fcn.0040d4c4
jmp 0x40d63c
cmp edi, dword [ebp - 8]
jae 0x40d600
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40d6eb
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d6eb
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a540
push dword [ebp - 0x160]
push 0x40d724
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a540
push dword [ebp - 0x164]
push 0x40d734
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a540
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a778
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d710
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040992c
ret
Function at 0x40d8bc
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d9c0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x6e6c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x6e6c2c]
jne 0x40d908
mov eax, esi
mov edx, 0x6e6c2e
mov ecx, 0x55
call fcn.0040a540
push 0x6e6c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40d9aa
push 0x6e6c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004098cc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d977
cmp byte [0x6e6c10], 0
je 0x40d93c
mov edx, esi
mov eax, ebx
call fcn.0040d7a0
jmp 0x40d977
mov edx, esi
mov eax, ebx
call fcn.0040d5a4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40d977
cmp dword [esi], 0
je 0x40d960
mov eax, esi
mov edx, 0x40d9d8
call fcn.0040a698
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d5a4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a698
push 0x6e6c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x6e6c2c], bx
mov eax, dword [esi]
call fcn.0040a488
mov ecx, eax
mov eax, 0x6e6c2e
mov edx, 0xaa
call fcn.0040d424
push 0x6e6c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d9c7
lea eax, [ebp - 4]
call fcn.004098cc
ret