joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ca80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, edx
mov dword [edi + 0xf868], eax
mov edx, 1
shl edx, cl
mov dword [edi + 0xf864], ecx
mov dword [edi + 0xf858], ecx
add ecx, 0xffffffff
mov eax, 1
shl eax, cl
xor esi, esi
sub edx, 1
mov dword [edi + 0xf860], esi
mov dword [edi + 0xf86c], eax
add eax, 1
mov dword [edi + 0xf870], eax
mov ax, word [edi + 0xf86c]
add ax, 2
mov dword [edi + 0x1dc], esi
mov dword [edi + 0x1d8], esi
mov word [edi + 0xf85c], dx
mov word [edi + 0xf85e], ax
mov dword [edi + 0xf874], esi
call fcn.0042c8d0
mov dword [esp + 0x10], eax
xor ecx, ecx
mov eax, 0x138b
add eax, eax
add ecx, 1
cmp eax, 0x10000
jl 0x42cb01
mov eax, 8
sub eax, ecx
mov dword [esp + 0x14], eax
mov eax, edi
call fcn.0042cf00
mov esi, edi
mov dx, word [edi + 0xf86c]
call fcn.0042cca0
lea ecx, [ecx]
mov eax, dword [edi + 0x1d4]
test eax, eax
je 0x42cc73
mov ebx, dword [edi + 0x1cc]
mov esi, dword [edi + 0x1d0]
add eax, 0xffffffff
mov dword [edi + 0x1d4], eax
mov ecx, ebx
mov eax, edi
call fcn.004293e0
movzx eax, al
add ebx, 1
cmp ebx, dword [edi + 0xc]
mov dword [esp + 0x18], eax
mov dword [edi + 0x1cc], ebx
jne 0x42cb84
add esi, 0xffffffff
mov dword [edi + 0x1cc], 0
mov dword [edi + 0x1d0], esi
cmp eax, 0xffffffff
je 0x42cc73
mov ecx, dword [esp + 0x14]
movsx ebx, ax
shl ebx, cl
mov ebp, eax
shl ebp, 0xc
add ebp, dword [esp + 0x10]
xor ebx, dword [esp + 0x10]
mov ecx, dword [edi + ebx*4 + 0x8314]
cmp ecx, ebp
lea eax, [edi + ebx*4 + 0x8314]
jne 0x42cbc6
movzx ecx, word [edi + ebx*2 + 0xd140]
mov dword [esp + 0x10], ecx
jmp 0x42cb30
test ecx, ecx
jl 0x42cbfe
mov ecx, 0x138b
sub ecx, ebx
test ebx, ebx
jne 0x42cbda
mov ecx, 1
lea edx, [ecx*4]
sub ebx, ecx
sub eax, edx
test ebx, ebx
jge 0x42cbf4
add ebx, 0x138b
add eax, 0x4e2c
mov esi, dword [eax]
cmp esi, ebp
je 0x42cc3a
test esi, esi
jg 0x42cbe1
mov edx, dword [esp + 0x10]
mov esi, edi
call fcn.0042cca0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
movzx eax, word [edi + 0xf85e]
cmp ax, 0x1000
jge 0x42cc4b
mov word [edi + ebx*2 + 0xd140], ax
add word [edi + 0xf85e], 1
mov dword [edi + ebx*4 + 0x8314], ebp
jmp 0x42cb30
movzx edx, word [edi + ebx*2 + 0xd140]
mov dword [esp + 0x10], edx
jmp 0x42cb30
mov eax, edi
call fcn.0042cf00
mov cx, word [edi + 0xf86c]
add cx, 2
mov word [edi + 0xf85e], cx
mov dword [edi + 0xf860], 1
jmp 0x42cb21
mov edx, dword [esp + 0x10]
mov esi, edi
call fcn.0042cca0
mov dx, word [edi + 0xf870]
call fcn.0042cca0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x439f30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x439f62
lea esp, [esp]
test cl, 3
je 0x439f62
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46d680]
add ecx, 1
sub esi, 1
jne 0x439f40
cmp esi, 0x20
push ebx
push edi
jb 0x43a14c
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x46da80]
xor edx, dword [ebx*4 + 0x46de80]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x46d680]
add ecx, 4
xor edx, dword [eax*4 + 0x46e280]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x46da80]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x46de80]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x46d680]
add ecx, 4
xor eax, dword [edx*4 + 0x46e280]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x46da80]
xor edx, dword [ebx*4 + 0x46de80]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x46d680]
xor edx, dword [eax*4 + 0x46e280]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x46da80]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x46de80]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x46d680]
xor eax, dword [edx*4 + 0x46e280]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x46da80]
xor edx, dword [ebx*4 + 0x46de80]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x46d680]
xor edx, dword [eax*4 + 0x46e280]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x46da80]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x46de80]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x46d680]
and edx, 0xff
xor eax, dword [edx*4 + 0x46e280]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x46da80]
xor edx, dword [ebx*4 + 0x46de80]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x46d680]
add ecx, 4
xor edx, dword [eax*4 + 0x46e280]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x46da80]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x46de80]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x46d680]
and edx, 0xff
xor eax, dword [edx*4 + 0x46e280]
sub edi, 1
jne 0x439f72
cmp esi, 4
jb 0x43a199
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x46da80]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x46de80]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x46d680]
and eax, 0xff
xor edi, dword [eax*4 + 0x46e280]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x43a156
test esi, esi
pop edi
pop ebx
je 0x43a1bd
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46d680]
add ecx, 1
sub esi, 1
jne 0x43a1a0
not eax
pop esi
ret
Function at 0x4422db
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x485300]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0044221a
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00447890
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x44232a
cmp dword [ebp - 0x1c], 5
jb 0x442342
jmp 0x44233e
cmp dword [ebp - 0x10], 1
jne 0x442342
cmp dword [ebp - 0x1c], 4
ja 0x44233e
jne 0x442342
cmp dword [ebp - 0x18], 0
jbe 0x442342
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4685ac
call fcn.004420b0
test eax, eax
jge 0x442363
mov byte [0x488364], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0044266a
add ebp, 0x78
leave
ret

Function at 0x44266a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x485300]
jne 0x442674
repz ret
jmp fcn.00447b06
Function at 0x4460ab
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4460e8
cmp dword [ebp + 0x14], edi
je 0x4460e8
cmp ecx, edi
jne 0x4460ef
call fcn.004480b0
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00442bce
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x446103
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x446124
cmp ebx, 0xffffffff
je 0x446113
push ebx
push edi
push ecx
call fcn.00447890
add esp, 0xc
cmp esi, edi
je 0x4460d0
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4460d0
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x446140
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x446147
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x446238
test word [esi + 0xc], 0x10c
je 0x44619b
mov eax, dword [esi + 4]
test eax, eax
je 0x44619b
jl 0x446299
cmp ebx, eax
mov edi, ebx
jb 0x44616c
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x446240
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00442c02
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x446230
cmp ebx, dword [ebp - 0xc]
jb 0x446208
cmp dword [ebp - 0xc], 0
je 0x4461c5
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x4461ba
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4461c1
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4461d0
mov eax, closesocket
cmp ebx, eax
ja 0x4461d0
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x44626c
push eax
push dword [ebp - 8]
push esi
call fcn.00451fe7
pop ecx
push eax
call fcn.0045399e
add esp, 0xc
test eax, eax
je 0x4462ab
cmp eax, 0xffffffff
je 0x446299
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x446230
push esi
call fcn.0045316f
cmp eax, 0xffffffff
pop ecx
je 0x44629d
cmp dword [ebp - 4], 0
je 0x44626c
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x44614f
mov eax, dword [ebp + 0x14]
jmp 0x4460ea
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x446257
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00447890
add esp, 0xc
call fcn.004480b0
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4460e0
cmp dword [ebp + 0xc], 0xffffffff
je 0x446282
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00447890
add esp, 0xc
call fcn.004480b0
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4460e0
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4460ea
or dword [esi + 0xc], 0x10
jmp 0x44629d
Function at 0x44ad9c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x485aa0]
je 0x44adb7
inc edi
cmp edi, 0x17
jb 0x44ada8
cmp edi, 0x17
jae 0x44af37
push ebp
push 3
call fcn.00459628
cmp eax, 1
pop ecx
je 0x44af03
push 3
call fcn.00459628
test eax, eax
pop ecx
jne 0x44adeb
cmp dword [0x485068], 1
je 0x44af03
cmp ebx, 0xfc
je 0x44af36
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x487918
push ebp
call fcn.0044a2cf
add esp, 0xc
test eax, eax
je 0x44ae21
push esi
push esi
push esi
push esi
push esi
call fcn.00442ad2
add esp, 0x14
push 0x104
mov esi, 0x487931
push esi
push 0
mov byte [0x487a35], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x44ae65
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0044a2cf
add esp, 0xc
test eax, eax
je 0x44ae65
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00442ad2
add esp, 0x14
push esi
call fcn.0044a340
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x44aeaa
push esi
call fcn.0044a340
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x487c2c
push 0x468ddc
sub ecx, eax
push ecx
push eax
call fcn.00457368
add esp, 0x14
test eax, eax
je 0x44aeaa
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00442ad2
add esp, 0x14
jmp 0x44aeac
xor esi, esi
push 0x468dd8
push ebx
push ebp
call fcn.004572f7
add esp, 0xc
test eax, eax
je 0x44aecc
push esi
push esi
push esi
push esi
push esi
call fcn.00442ad2
add esp, 0x14
push dword [edi*8 + 0x485aa4]
push ebx
push ebp
call fcn.004572f7
add esp, 0xc
test eax, eax
je 0x44aeee
push esi
push esi
push esi
push esi
push esi
call fcn.00442ad2
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0045946b
add esp, 0xc
jmp 0x44af36
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x44af36
cmp ebp, 0xffffffff
je 0x44af36
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x485aa4]
push dword [esi]
call fcn.0044a340
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x45946b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004498dc
xor ebx, ebx
cmp dword [0x4880d4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x459541
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x459621
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x459621
push eax
call fcn.0044986e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4880d4], eax
call esi
push eax
call fcn.0044986e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4880d8], eax
call esi
push eax
call fcn.0044986e
mov dword [0x4880dc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00446f5b
test eax, eax
pop ecx
pop ecx
je 0x45950f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00442ad2
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x459541
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0044986e
cmp eax, ebx
pop ecx
mov dword [0x4880e4], eax
je 0x459541
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044986e
pop ecx
mov dword [0x4880e0], eax
mov eax, dword [0x4880e0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4595c6
cmp dword [0x4880e4], ecx
je 0x4595c6
push eax
call fcn.004498e5
push dword [0x4880e4]
mov esi, eax
call fcn.004498e5
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4595c6
cmp edi, ebx
je 0x4595c6
call esi
cmp eax, ebx
je 0x459593
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x459593
test byte [ebp - 0x18], 1
jne 0x4595c6
lea eax, [ebp - 0x10]
push eax
call fcn.00446f92
test eax, eax
pop ecx
je 0x4595ae
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00442ad2
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4595bd
or dword [ebp + 0x10], 0x200000
jmp 0x459601
or dword [ebp + 0x10], 0x40000
jmp 0x459601
mov eax, dword [0x4880d8]
cmp eax, dword [ebp - 8]
je 0x459601
push eax
call fcn.004498e5
cmp eax, ebx
pop ecx
je 0x459601
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x459601
mov eax, dword [0x4880dc]
cmp eax, dword [ebp - 8]
je 0x459601
push eax
call fcn.004498e5
cmp eax, ebx
pop ecx
je 0x459601
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4880d4]
call fcn.004498e5
cmp eax, ebx
pop ecx
je 0x459621
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x459623
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4244f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x411a58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
push esi
lea ecx, [esp + 0x18]
call 0x432942
mov ecx, dword [esi + 0x20]
lea eax, [esp + 4]
push eax
push ecx
mov dword [esp + 0x38], 0
call dword [fcn.00413694]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub eax, ecx
mov ecx, dword [esp + 4]
push eax
sub edx, ecx
add eax, 0xffffffe8
push edx
push eax
lea eax, [esp + 0x10]
push 0
push eax
call dword [fcn.00413680]
lea ecx, [esp + 4]
add esi, 0x1a8
push ecx
mov ecx, esi
call 0x431b70
lea edx, [esp + 0x14]
mov ecx, esi
push edx
call 0x4316c0
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call 0x43293c
mov ecx, dword [esp + 0x28]
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret

Function at 0x424508
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x411a58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
push esi
lea ecx, [esp + 0x18]
call 0x432942
mov ecx, dword [esi + 0x20]
lea eax, [esp + 4]
push eax
push ecx
mov dword [esp + 0x38], 0
call dword [fcn.00413694]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub eax, ecx
mov ecx, dword [esp + 4]
push eax
sub edx, ecx
add eax, 0xffffffe8
push edx
push eax
lea eax, [esp + 0x10]
push 0
push eax
call dword [fcn.00413680]
lea ecx, [esp + 4]
add esi, 0x1a8
push ecx
mov ecx, esi
call 0x431b70
lea edx, [esp + 0x14]
mov ecx, esi
push edx
call 0x4316c0
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call 0x43293c
mov ecx, dword [esp + 0x28]
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x401320
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401332
mov eax, dword [0x48108b]
shl eax, 2
mov dword [0x48108f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00461604
pop edx
call fcn.00461568
call fcn.00461644
push 0
call fcn.00462ae8
pop ecx
push 0x481034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x481093], eax
push 0
jmp fcn.00468548

Function at 0x40fca8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x486408
cmp dword [edi], 0
jne 0x40fd24
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x486404]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4814fc
mov ecx, 2
call fcn.00420d88
mov edx, 0x40fc80
lea eax, [esi + 5]
call fcn.0040fca0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0040fca0
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x40fcf9
mov dword [0x486404], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x414094
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x4140cd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004225ec
jmp 0x4140d6
mov eax, ebx
mov edx, esi
call fcn.00422550
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4140e0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x414101
mov al, byte [esp]
jmp 0x414103
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x414788
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x414600
mov eax, dword [0x486120]
cmp byte [eax], 0
je 0x4147f5
mov eax, dword [0x486124]
call fcn.00421144
call fcn.00420cf4
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0041290c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x41483c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x41482b
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x485fe0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x486304]
call fcn.00423c48
push eax
call sub.USER32.DLL_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
add esp, 0x444
ret
Function at 0x415384
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4153e8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00422764
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.004125e4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4153ef
lea eax, [ebp - 0xc]
call fcn.004224fc
ret

Function at 0x421820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x481a24]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4218b8
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x421898
xor eax, eax
push ebp
push 0x421891
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4218d4
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421898
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x481a24]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x481a24], ax
mov esp, ebp
pop ebp
ret

Function at 0x422380
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x486724], 0
je 0x4223e1
cmp word [0x4868f8], 0xd7b2
jne 0x4223a9
cmp dword [0x486900], 0
jbe 0x4223a9
mov eax, 0x4868f4
call dword [0x486910]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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
push 0x422408
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x481a34], 0
jne 0x4223fd
push 0
push 0x481a8c
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret