joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404780
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [esp + 0x20]
lea edi, [esi + 0x18]
push edi
lea eax, [esp + 0x24]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [esp + 0x20]
test eax, eax
jne 0x404814
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40481f
mov ecx, dword [esi + 0x28]
push 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4047d9
pop edi
xor ebx, ebx
pop esi
mov eax, ebx
pop ebx
add esp, 0xc
ret 8
mov eax, dword [esi]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push 0
lea edx, [esp + 0x28]
push edx
push edi
push eax
call ebp
test eax, eax
jne 0x404813
add ebx, dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
jne 0x404813
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x28]
push ecx
push edi
push edx
call ebp
test eax, eax
je 0x4047f1
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0xc
ret 8
mov edx, dword [esi]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret 8
Function at 0x404980
Capabilities:
Create thread

Disassembly:
sub esp, 0x44
mov eax, dword [0x44c6b0]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x54]
push 3
push 0x4407f0
push esi
mov ebp, ecx
call fcn.0043db64
add esp, 0xc
xor ebx, ebx
test eax, eax
jne 0x404a00
lea eax, [esi + 3]
push eax
call fcn.0042ac24
add esp, 4
cmp eax, 0xa
jl 0x404a00
mov dl, byte [0x4407ec]
mov ecx, dword [str.._]
mov eax, esi
mov byte [esp + 0x40], dl
mov dword [esp + 0x3c], ecx
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4049d6
push edi
lea edi, [esp + 0x40]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4049e5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [esp + 0x40]
pop edi
push ebx
push 0x40000000
push 3
push ebx
push ebx
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp], eax
cmp eax, 0xffffffff
jne 0x404a37
pop esi
mov dword [ebp], ebx
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00428f13
add esp, 0x44
ret 8
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCommState]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x58]
and eax, 0xfffff7fd
or eax, 1
lea edx, [esp + 0x20]
mov dword [esp + 0x28], eax
mov eax, dword [ebp]
push edx
push eax
mov dword [esp + 0x28], 0x1c
mov dword [esp + 0x2c], esi
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3a], 8
call dword [sym.imp.KERNEL32.dll_SetCommState]
mov edx, dword [ebp]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetCommTimeouts]
mov eax, 0x4b00
cdq
idiv esi
mov ecx, dword [ebp]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
call esi
push ebx
push ebx
push 1
push ebx
mov dword [ebp + 0x14], eax
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], ebx
call esi
lea edx, [ebp + 0x2c]
push edx
push ebx
push ebp
push 0x404860
push ebx
push ebx
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x4c]
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00428f13
add esp, 0x44
ret 8
Function at 0x4054a0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebp
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push 0x80000000
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
lea ecx, [esp + 0x14]
push ecx
push 4
lea ebp, [esi + 0x3e0]
push ebp
push eax
mov dword [esi + 0x3cc], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x14], 0
je 0x4055a2
mov eax, dword [ebp]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
push ebx
neg ecx
or ecx, eax
push ecx
call fcn.00428fd0
mov ecx, dword [ebp]
add ecx, ecx
add ecx, ecx
push ecx
push edi
push eax
mov dword [esi + 0x3f0], eax
call fcn.00428f30
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0x10
cmp dword [ebp], edi
jle 0x405582
jmp 0x405530
mov ecx, dword [esi + 0x3cc]
push 0
lea edx, [esp + 0x18]
push edx
push 4
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esi + 0x3cc]
push 1
push 0
push 0xfffffffffffffffc
push edx
call ebx
mov eax, dword [esi + 0x3f0]
mov ecx, dword [esp + 0x18]
mov dword [eax + edi*4], ecx
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x3cc]
push 1
push 0
lea eax, [edx + edx]
push eax
push ecx
call ebx
inc edi
cmp edi, dword [ebp]
jl 0x405530
mov edx, dword [esi + 0x3cc]
push 0
push 0
push 4
push edx
call ebx
pop ebx
pop edi
mov dword [esi + 0x424], 0
pop esi
pop ebp
ret 8
mov dword [esi + 0x424], edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x4055e0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, ecx
cmp ebx, dword [esi + 0x3e0]
jge 0x405662
mov eax, dword [esi + 0x3cc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 4
push eax
mov byte [esi + 0x428], 0
mov dword [esi + 0x424], ebx
call edi
dec ebx
test ebx, ebx
jle 0x405661
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 0x3cc]
push 0
lea ecx, [esp + 0x14]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push eax
call ebp
mov ecx, dword [esi + 0x3cc]
push 1
push 0
push 0xfffffffffffffffc
push ecx
call edi
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x3cc]
push 1
push 0
lea eax, [edx + edx]
push eax
push ecx
call edi
sub ebx, 1
jne 0x405620
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret 4
Function at 0x407440
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [ecx + 0x3d0]
mov ecx, dword [ecx + 0x3d4]
mov edx, dword [esp + 0xc]
push ebx
push ebp
push esi
add ecx, ecx
push edi
mov dword [esp + 0x14], ecx
mov edi, eax
mov dword [esp + 0x10], 0x500
mov ecx, edi
mov esi, 0x180
mov edi, edi
mov eax, dword [ecx]
mov ebx, eax
shr ebx, 5
mov ebp, eax
and ebx, 0xffc0f83f
and ebp, 0x7e0f81f
imul ebx, edx
imul ebp, edx
shr eax, 5
and eax, 0x7c0f83f
imul eax, edx
shr ebp, 5
xor ebx, ebp
and ebx, 0x7e0f81f
xor ebx, eax
mov dword [ecx], ebx
add ecx, 4
sub esi, 1
jne 0x407470
add edi, dword [esp + 0x14]
sub dword [esp + 0x10], 1
jne 0x407467
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4

Function at 0x4077c0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
push 0x44046c
push eax
mov esi, ecx
xor ebx, ebx
call fcn.00429aef
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4078c9
push edi
push ebp
push 1
lea edi, [esi + 0x3e0]
push 4
push edi
call fcn.00429a0e
mov eax, dword [edi]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00428fd0
add esp, 0x14
xor edi, edi
cmp dword [esi + 0x3e0], ebx
mov dword [esi + 0x3e4], eax
jle 0x4078a0
push ebp
push 1
lea eax, [esp + 0x1c]
push 4
push eax
call fcn.00429a0e
push 1
push 0xfffffffffffffffc
push ebp
call fcn.0042acb9
mov eax, dword [esp + 0x30]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00428fd0
mov ecx, dword [esi + 0x3e4]
mov dword [ecx + edi*4], eax
mov edx, dword [esp + 0x34]
mov ecx, dword [esi + 0x3e4]
push ebp
lea eax, [edx + edx]
mov edx, dword [ecx + edi*4]
push 1
push eax
push edx
call fcn.00429a0e
add esp, 0x30
push edi
mov ecx, esi
call fcn.004055b0
movsx ecx, bx
cmp ecx, eax
jge 0x407897
push edi
mov ecx, esi
call fcn.004055b0
movzx ebx, ax
inc edi
cmp edi, dword [esi + 0x3e0]
jl 0x407824
xor ecx, ecx
movsx eax, bx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00428fd0
push ebp
mov dword [esi + 0x3e8], eax
call fcn.004296f2
add esp, 8
pop edi
push 0x500
push 0x300
push 0
push 0
add esi, 0x3f8
push esi
call dword [sym.imp.USER32.dll_SetRect]
pop esi
pop ebp
pop ebx
ret 4
Function at 0x416ab0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x5c
mov eax, dword [0x44c6b0]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, 1
add dword [edi + 0x188c], ebp
mov eax, dword [edi + 0x188c]
xor ebx, ebx
cmp eax, 0x64
jl 0x416ae2
mov dword [edi + 0x188c], ebx
push 0x3f
lea eax, [esp + 0x2d]
push ebx
push eax
mov byte [esp + 0x34], bl
call fcn.00428f30
mov ecx, dword [edi + 0x188c]
push ecx
lea edx, [esp + 0x38]
push str.code_sav_02d.t1
push edx
call fcn.0042ab73
lea eax, [esp + 0x40]
push 0x440f84
push eax
call fcn.00429aef
mov esi, eax
add esp, 0x20
cmp esi, ebx
je 0x416cee
mov eax, 0x22b
cmp dword [esp + 0x70], ebp
jne 0x416b35
mov eax, 0x226
add eax, dword [0x450ef4]
push esi
push ebp
lea ecx, [esp + 0x24]
push 4
push ecx
mov dword [esp + 0x2c], eax
call fcn.0042b15b
lea ebp, [edi + 0x208]
add esp, 0x10
mov ecx, ebp
call fcn.00428440
push esi
push 1
lea edx, [esp + 0x18]
push 4
push edx
mov dword [esp + 0x20], eax
call fcn.0042b15b
mov eax, dword [0x451250]
push esi
push 1
lea ecx, [esp + 0x28]
push 4
push ecx
mov dword [esp + 0x30], eax
call fcn.0042b15b
mov edx, dword [0x44c04c]
push esi
push 1
lea eax, [esp + 0x3c]
push 4
push eax
mov dword [esp + 0x44], edx
call fcn.0042b15b
mov ecx, dword [edi + 0x10]
push esi
push 1
lea edx, [esp + 0x4c]
push 4
push edx
mov dword [esp + 0x54], ecx
call fcn.0042b15b
add esp, 0x40
mov ecx, ebp
call fcn.00428450
push esi
push 1
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push 4
push eax
call fcn.0042b15b
push esi
push 1
push 0x14
push 0x44f688
call fcn.0042b15b
push esi
push 1
push 0x14
push 0x44eae0
call fcn.0042b15b
mov ecx, dword [0x44dd48]
mov eax, 0x51eb851f
mul dword [ecx + 0x364]
shr edx, 5
imul edx, edx, 0x64
add edx, dword [ecx + 0x36c]
push esi
imul edx, edx, 0x64
add edx, dword [ecx + 0x368]
push 1
lea ecx, [esp + 0x48]
push 4
push ecx
mov dword [esp + 0x50], edx
call fcn.0042b15b
add esp, 0x40
mov dword [esp + 0x14], ebx
push esi
push 1
lea edx, [esp + 0x1c]
push 4
push edx
call fcn.0042b15b
mov eax, dword [0x44c050]
push esi
push 1
lea ecx, [esp + 0x28]
push 4
push ecx
mov dword [esp + 0x30], eax
call fcn.0042b15b
mov ecx, dword [0x451280]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push esi
mov eax, edx
push 1
shr eax, 0x1f
lea ecx, [esp + 0x4c]
add eax, edx
push 4
push ecx
mov dword [esp + 0x54], eax
call fcn.0042b15b
push esi
push 1
push 4
push 0x451274
call fcn.0042b15b
add esp, 0x40
push esi
push 1
lea edx, [esp + 0x28]
push 4
push edx
mov dword [esp + 0x30], ebx
call fcn.0042b15b
push esi
push 1
lea eax, [esp + 0x28]
push 4
push eax
mov dword [esp + 0x30], ebx
call fcn.0042b15b
push esi
push 1
lea ecx, [esp + 0x3c]
push 4
push ecx
mov dword [esp + 0x44], ebx
call fcn.0042b15b
push esi
push 1
lea edx, [esp + 0x53]
push 1
push edx
mov byte [esp + 0x5b], 0x59
call fcn.0042b15b
add esp, 0x40
push esi
call fcn.004296f2
add esp, 4
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00428f13
add esp, 0x5c
ret 4
Function at 0x424590
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x44f6b4], 1
push esi
movzx esi, word [esp + 8]
push esi
jne 0x4245ab
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jmp 0x4245b9
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
mov eax, dword [esi*4 + 0x44ec48]
je 0x4245e4
test eax, eax
jne 0x4245d8
mov dword [esi*4 + 0x44ec48], 1
mov eax, 1
pop esi
ret
cmp eax, 1
jne 0x4245ee
mov eax, 2
pop esi
ret
cmp eax, 1
je 0x4245f2
cmp eax, 2
je 0x4245f2
xor eax, eax
pop esi
ret
mov dword [esi*4 + 0x44ec48], 0
mov eax, 3
pop esi
ret
Function at 0x428f13
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44c6b0]
jne 0x428f1d
repz ret
jmp fcn.0042b718

Function at 0x4356cd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004316f7
and dword [ebp - 4], 0
cmp dword [0x451c78], 0
mov ebx, eax
jne 0x43577e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43582f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x447808
push edi
call esi
test eax, eax
je 0x43582f
push eax
call fcn.00431685
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x451c78], eax
call esi
push eax
call fcn.00431685
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x451c7c], eax
call esi
push eax
call fcn.00431685
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x451c80], eax
call esi
push eax
call fcn.00431685
pop ecx
mov dword [0x451c88], eax
test eax, eax
je 0x43577e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00431685
pop ecx
mov dword [0x451c84], eax
mov eax, dword [0x451c84]
cmp eax, ebx
je 0x4357d6
cmp dword [0x451c88], ebx
je 0x4357d6
push eax
call fcn.00431700
push dword [0x451c88]
mov esi, eax
call fcn.00431700
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4357d6
test edi, edi
je 0x4357d6
call esi
test eax, eax
je 0x4357cd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4357cd
test byte [ebp - 0xc], 1
jne 0x4357d6
or dword [ebp + 0x10], 0x200000
jmp 0x43580f
mov eax, dword [0x451c7c]
cmp eax, ebx
je 0x43580f
push eax
call fcn.00431700
pop ecx
test eax, eax
je 0x43580f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43580f
mov eax, dword [0x451c80]
cmp eax, ebx
je 0x43580f
push eax
call fcn.00431700
pop ecx
test eax, eax
je 0x43580f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x451c78]
call fcn.00431700
pop ecx
test eax, eax
je 0x43582f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x435831
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d6a
sub eax, 0x403d10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x403924
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x489020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4039bc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40399c
xor eax, eax
push ebp
push 0x403995
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 0x4039f4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40399c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x489020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x489020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404aa4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48b050], 0
je 0x404b05
cmp word [0x48b32c], 0xd7b2
jne 0x404acd
cmp dword [0x48b334], 0
jbe 0x404acd
mov eax, 0x48b328
call dword [0x48b344]
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
push 0x404b30
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48902c], 0
jne 0x404b21
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404c84
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x489030], 0
je 0x404caa
mov edx, esi
mov eax, ebx
call dword [0x489030]
jmp 0x404cb9
mov eax, 8
call fcn.00402f9c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x48b051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404c4c
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x407278
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x408b8c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x48db2c
push 0xa
push 0x408c20
mov eax, dword [0x48db1c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x408bb0
call fcn.00410790
push ebx
mov eax, dword [0x48db1c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x408bc7
call fcn.00410790
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x408bd9
call fcn.00410790
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x48db30], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x48db34], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x48db38], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x48db3c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x48db40], ecx
add edx, dword [eax + 0x14]
mov dword [0x48db44], edx
pop esi
pop ebx
ret

Function at 0x40a240
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40a2e9
test eax, edx
je 0x40a2ec
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40a269
push edx
mov edx, eax
mov eax, esp
call fcn.0040568c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40a27f
push eax
lea eax, [esp + 8]
call fcn.0040568c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40a28e
movzx eax, word [eax]
sub eax, ecx
jmp 0x40a2b5
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40a2cf
add ecx, 4
js 0x40a2a6
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40a2cc
push eax
mov eax, ecx
mov edx, 2
call fcn.00404d24
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40a2b3
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40a2b5
xor eax, eax
ret
test eax, eax
je 0x40a2fc
test edx, edx
jne 0x40a250
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40e2a4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40e2dd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004055f4
jmp 0x40e2e6
mov eax, ebx
mov edx, esi
call fcn.004054b8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40e2f0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40e312
movzx eax, word [esp]
jmp 0x40e314
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40ea78
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffff004
push eax
add esp, 0xffffff7c
push 0x800
lea ecx, [esp + 0x88]
call fcn.0040e8b0
mov eax, dword [0x48add8]
cmp byte [eax], 0
je 0x40eb0a
mov eax, dword [0x48aba4]
call fcn.00403390
call fcn.00403104
lea eax, [esp + 0x884]
push eax
lea eax, [esp + 0x88]
push eax
call sub.user32.dll_CharToOemW
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x88c]
call fcn.0040b18c
push eax
lea eax, [esp + 0x890]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40eb58
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40eb43
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x48ab4c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x48db1c]
call fcn.004065c0
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x8c]
push eax
push 0
call sub.user32.dll_MessageBoxW
add esp, 0x1084
ret

Function at 0x40f720
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40f7f6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040550c
lea eax, [ebp - 4]
call fcn.00405d88
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405544
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x40f7e0
mov eax, ebx
call fcn.00402f9c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40f7d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405544
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x40f7c3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40f808
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x40f7c3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f7e0
mov eax, dword [ebp - 0x10]
call fcn.00402fb8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f7fd
lea eax, [ebp - 4]
call fcn.004054a8
ret