joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426a4e
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x48529e
call fcn.0046746c
push ecx
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x14], ebx
call fcn.00469564
mov eax, 0x48ccb8
lea edi, [ebx + 0x10]
mov esi, eax
and dword [ebp - 4], 0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x20]
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x30]
lea eax, [ebp - 0xd]
mov edi, 0x48b660
mov esi, 0x48b658
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401907
lea ecx, [ebx + 0x58]
lea eax, [ebp - 0xe]
push 0
push eax
mov byte [ebp - 4], 1
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401907
mov eax, dword [ebp + 8]
mov ecx, ebx
mov byte [ebp - 4], 2
mov dword [ebx], 0x48b888
mov dword [ebx + 0xc], eax
call fcn.00426bdc
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x426ae0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4852c6
call fcn.0046746c
push ecx
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x14], ebx
call fcn.00469564
and dword [ebp - 4], 0
lea edi, [ebx + 0x30]
lea eax, [ebp - 0xd]
mov esi, 0x48b658
push 0
push eax
mov ecx, edi
mov dword [edi], 0x48b660
mov dword [edi + 0x20], esi
call fcn.00401907
lea ecx, [ebx + 0x58]
lea eax, [ebp - 0xe]
push 0
push eax
mov byte [ebp - 4], 1
mov dword [ecx], 0x48b660
mov dword [ecx + 0x20], esi
call fcn.00401907
mov esi, dword [ebp + 8]
mov dword [ebx], 0x48b888
mov ecx, edi
mov byte [ebp - 4], 2
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [esi + 0x30]
push eax
call fcn.00401d3d
lea eax, [esi + 0x58]
lea ecx, [ebx + 0x58]
push eax
call fcn.00401d3d
add esi, 0x20
lea edi, [ebx + 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x10]
lea edi, [ebx + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4297c9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, edx
dec edx
test eax, eax
je 0x429803
mov eax, dword [ecx + 0x74]
push esi
lea esi, [edx + 1]
mov edx, dword [ebp + 8]
push edi
mov ecx, dword [ebp + 0x10]
movzx edi, byte [edx]
and ecx, 0xff
xor ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 8
mov ecx, dword [eax + ecx*4]
inc edx
xor edi, ecx
dec esi
mov dword [ebp + 0x10], edi
jne 0x4297e1
pop edi
pop esi
mov eax, dword [ebp + 0x10]
pop ebp
ret 0xc
Function at 0x45ede0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48a5c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [0x48b924]
push ebx
push esi
push edi
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x48b920
mov dword [esp + 0x30], 0x48b918
lea esi, [esp + eax + 0x10]
call dword [0x48b338]
mov dword [esi], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x40], 0
test eax, eax
je 0x45ee39
add eax, 4
jmp 0x45ee3b
xor eax, eax
push eax
lea ecx, [esp + 0x18]
call fcn.0045d5b0
lea ecx, [esp + 0x24]
call fcn.0045cda0
push 0
lea ecx, [esp + 0x34]
call fcn.0045cde0
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x40], 1
test ebx, ebx
je 0x45ee6e
lea ecx, [ebx - 1]
jmp 0x45ee70
xor ecx, ecx
mov edx, dword [esp + 0x18]
mov eax, 0x48b6d0
test edx, edx
je 0x45ee7f
mov eax, edx
cmp word [eax + ecx*2], 0x5c
je 0x45eef1
test ebx, ebx
je 0x45ee8f
lea ecx, [ebx - 1]
jmp 0x45ee91
xor ecx, ecx
test edx, edx
mov eax, 0x48b6d0
je 0x45ee9c
mov eax, edx
cmp word [eax + ecx*2], 0x2f
je 0x45eef1
mov esi, dword [esp + 0x50]
mov eax, dword [esi + 8]
lea edi, [esi + 4]
test eax, eax
jne 0x45eeb6
mov eax, 0x48b6d0
cmp word [eax], 0x5c
je 0x45eedf
mov eax, dword [edi + 4]
test eax, eax
jne 0x45eec8
mov eax, 0x48b6d0
cmp word [eax], 0x2f
je 0x45eedf
test ebx, ebx
je 0x45eedf
push 0x5c
push 1
lea ecx, [esp + 0x1c]
call fcn.00405ab0
mov ecx, dword [0x48b6b0]
neg esi
sbb esi, esi
push ecx
and esi, edi
push 0
push esi
jmp 0x45ef34
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 8]
lea esi, [eax + 4]
test ecx, ecx
jne 0x45ef04
mov ecx, 0x48b6d0
cmp word [ecx], 0x5c
je 0x45ef20
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x45ef16
mov ecx, 0x48b6d0
cmp word [ecx], 0x2f
je 0x45ef20
xor edx, edx
jmp 0x45ef25
mov edx, 1
mov ecx, dword [0x48b6b0]
neg eax
sbb eax, eax
push ecx
and eax, esi
push edx
push eax
lea ecx, [esp + 0x20]
call fcn.0040b07a
mov edi, dword [esp + 0x48]
lea edx, [esp + 0x10]
push 0
push edx
mov ecx, edi
mov dword [edi], 0x48b920
mov dword [edi + 0x20], 0x48b918
call fcn.00403d4e
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
neg eax
sbb eax, eax
and eax, ecx
mov edx, dword [eax]
mov esi, dword [edx + 4]
add esi, eax
call dword [0x48b338]
mov dword [esi], eax
lea esi, [esp + 0x10]
neg esi
sbb esi, esi
lea eax, [esp + 0x24]
and esi, eax
mov ecx, dword [esi]
push ecx
call fcn.00439080
mov edx, dword [esi + 8]
add esp, 4
push edx
call dword [0x48b3c0]
lea ecx, [esp + 0x10]
lea eax, [esp + 0x14]
neg ecx
sbb ecx, ecx
push 1
and ecx, eax
call fcn.00403edb
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
mov eax, dword [esp + edx + 0x10]
push eax
call dword [0x48b33c]
mov ecx, dword [esp + 0x38]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x402640
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x44
push esi
mov esi, dword [esp + 0x4c]
push 0
mov dword [0x40c418], esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push 0x7f00
push 0
mov dword [esp + 0x44], eax
call dword [0x40c3fc]
push 0x7f00
push 0
mov dword [esp + 0x40], eax
call dword [0x40c400]
mov dword [esp + 0x34], eax
mov eax, dword [str.DEXTUploadXBroker]
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x28], 0x402480
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x24], 3
call dword [0x40c404]
mov edx, dword [esp + 0x54]
push 0
push esi
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push 0x40
push edx
call dword [sym.imp.MSVCR71.dll_wcschr]
add esp, 8
push eax
mov eax, dword [str.DEXTUploadXBroker]
push eax
push 0
call dword [0x40c3ec]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [0x40c3f8]
push 0
push 0
push 0
lea ecx, [esp + 0x10]
push ecx
call esi
test eax, eax
je 0x402751
push ebx
mov ebx, dword [0x40c3f4]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea esp, [esp]
lea edx, [esp + 0xc]
push edx
call edi
lea eax, [esp + 0xc]
push eax
call ebx
push 0
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
call esi
test eax, eax
jne 0x402730
pop edi
pop ebx
mov eax, dword [esp + 0xc]
pop esi
add esp, 0x44
ret 0x10

Function at 0x402780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402799
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4027ad
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4027ce
cmp esi, eax
jae 0x4027a7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4027c0
cmp esi, eax
jae 0x4027a7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402fe0
Capabilities:
Get file size

Disassembly:
mov eax, dword [ecx + 0x14]
cmp eax, 0xffffffff
push 0
jne 0x402fff
mov eax, dword [ecx + 4]
push 2
push 0x731
push eax
call dword [0x40c408]
or eax, 0xffffffff
ret
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
ret
Function at 0x404680
Capabilities:
Read data from internet
Receive data

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x4046a4
mov eax, dword [esi + 4]
push 0
push 0
push 0x731
push eax
call dword [0x40c408]
or eax, 0xffffffff
pop esi
ret 4
push edi
lea edx, [esi + 0x1c]
mov edi, edx
xor eax, eax
mov ecx, 0x1000
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
push edi
push edx
mov edx, dword [esi + 0x18]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4046d4
mov eax, dword [esp + 0xc]
cmp edi, eax
je 0x4046e3
push 0x4074e0
mov ecx, esi
call fcn.00404210
or eax, 0xffffffff
pop edi
pop esi
ret 4

Function at 0x4046f0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
cmp eax, 0xffffffff
jne 0x404715
mov eax, dword [esi + 4]
push 0
push 2
push 0x731
push eax
call dword [0x40c408]
or eax, 0xffffffff
pop esi
ret 4
push edi
mov edi, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
lea edx, [esi + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404739
mov eax, dword [esp + 0xc]
cmp edi, eax
je 0x404745
push 0
mov ecx, esi
call fcn.00404210
or eax, 0xffffffff
pop edi
pop esi
ret 4
Function at 0x404890
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x28
mov eax, dword [0x40c380]
push ebx
push ebp
mov ebp, ecx
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x2c], eax
sub edx, 6
xor eax, eax
cmp edx, eax
push esi
push edi
jle 0x4048ba
mov esi, dword [esp + 0x3c]
mov ecx, edx
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
cmp edx, eax
mov dword [esp + 0x3c], eax
jle 0x40490d
mov esi, 8
lea esp, [esp]
mov edi, dword [esp + 0x3c]
cmp edi, dword [ebp + 0x1c]
ja 0x40490d
cmp eax, edx
jge 0x4048f6
lea ecx, [ecx]
cmp ecx, 4
jge 0x4048f9
mov ebx, dword [esp + eax*4 + 0x14]
lea edi, [esi + ecx]
inc eax
inc ecx
cmp eax, edx
mov dword [ebp + edi*4], ebx
jl 0x4048e0
cmp ecx, 4
jne 0x404909
mov edi, dword [esp + 0x3c]
inc edi
add esi, 4
mov dword [esp + 0x3c], edi
xor ecx, ecx
cmp eax, edx
jl 0x4048d0
mov eax, dword [esp + 0x3c]
cmp eax, dword [ebp + 0x1c]
ja 0x404a7c
mov esi, 0x40c270
jmp 0x404930
mov esi, dword [esp + 0x10]
jmp 0x404930
movzx edi, byte [esp + edx*4 + 0x11]
mov bl, byte [edi + str.cw]
mov al, byte [esp + 0x14]
xor al, bl
mov byte [esp + 0x14], al
movzx edi, byte [esp + edx*4 + 0x12]
mov bl, byte [edi + str.cw]
xor byte [esp + 0x15], bl
movzx edi, byte [esp + edx*4 + 0x13]
mov bl, byte [edi + str.cw]
xor byte [esp + 0x16], bl
movzx edi, byte [esp + edx*4 + 0x10]
mov bl, byte [edi + str.cw]
xor byte [esp + 0x17], bl
xor al, byte [esi]
add esi, 4
cmp edx, 8
mov byte [esp + 0x14], al
mov dword [esp + 0x10], esi
mov eax, 1
je 0x4049a6
cmp edx, eax
jle 0x404a24
mov ebx, dword [esp + eax*4 + 0x14]
mov esi, dword [esp + eax*4 + 0x10]
xor ebx, esi
mov dword [esp + eax*4 + 0x14], ebx
inc eax
cmp eax, edx
jl 0x404991
jmp 0x404a24
mov ebx, dword [esp + eax*4 + 0x14]
mov esi, dword [esp + eax*4 + 0x10]
xor ebx, esi
mov dword [esp + eax*4 + 0x14], ebx
inc eax
cmp eax, 4
jl 0x4049a6
movzx eax, byte [esp + 0x20]
mov al, byte [eax + str.cw]
mov bl, byte [esp + 0x24]
xor bl, al
movzx eax, byte [esp + 0x21]
mov al, byte [eax + str.cw]
mov byte [esp + 0x24], bl
mov bl, byte [esp + 0x25]
xor bl, al
movzx eax, byte [esp + 0x22]
mov al, byte [eax + str.cw]
mov byte [esp + 0x25], bl
mov bl, byte [esp + 0x26]
xor bl, al
movzx eax, byte [esp + 0x23]
mov al, byte [eax + str.cw]
mov byte [esp + 0x26], bl
xor byte [esp + 0x27], al
mov eax, 5
lea ecx, [ecx]
mov ebx, dword [esp + eax*4 + 0x14]
mov esi, dword [esp + eax*4 + 0x10]
xor ebx, esi
mov dword [esp + eax*4 + 0x14], ebx
inc eax
cmp eax, 8
jl 0x404a10
xor eax, eax
test edx, edx
jle 0x404a6f
mov esi, dword [esp + 0x3c]
lea esi, [esi*4 + 8]
mov edi, dword [esp + 0x3c]
cmp edi, dword [ebp + 0x1c]
ja 0x404a6f
cmp eax, edx
jge 0x404a58
cmp ecx, 4
jge 0x404a5b
mov ebx, dword [esp + eax*4 + 0x14]
lea edi, [esi + ecx]
inc eax
inc ecx
cmp eax, edx
mov dword [ebp + edi*4], ebx
jl 0x404a42
cmp ecx, 4
jne 0x404a6b
mov edi, dword [esp + 0x3c]
inc edi
add esi, 4
mov dword [esp + 0x3c], edi
xor ecx, ecx
cmp eax, edx
jl 0x404a35
mov eax, dword [esp + 0x3c]
cmp eax, dword [ebp + 0x1c]
jbe 0x404921
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
call fcn.00406674
add esp, 0x28
ret 4
Function at 0x404a90
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx + 0x1c]
mov edx, 1
cmp eax, edx
jbe 0x404b8d
push ebx
push esi
lea eax, [ecx + 0x32]
push edi
jmp 0x404ab0
movzx edi, byte [eax - 1]
mov ebx, dword [edi*4 + 0x40b670]
movzx esi, byte [eax + 1]
mov esi, dword [esi*4 + 0x40be70]
movzx edi, byte [eax]
xor esi, ebx
mov ebx, dword [edi*4 + 0x40ba70]
movzx edi, byte [eax - 2]
xor esi, ebx
xor esi, dword [edi*4 + 0x40b270]
mov dword [eax - 2], esi
movzx edi, byte [eax + 4]
mov ebx, dword [edi*4 + 0x40ba70]
movzx esi, byte [eax + 5]
mov esi, dword [esi*4 + 0x40be70]
movzx edi, byte [eax + 3]
xor esi, ebx
mov ebx, dword [edi*4 + 0x40b670]
movzx edi, byte [eax + 2]
xor esi, ebx
xor esi, dword [edi*4 + 0x40b270]
mov dword [eax + 2], esi
movzx edi, byte [eax + 8]
mov ebx, dword [edi*4 + 0x40ba70]
movzx esi, byte [eax + 9]
mov esi, dword [esi*4 + 0x40be70]
movzx edi, byte [eax + 7]
xor esi, ebx
mov ebx, dword [edi*4 + 0x40b670]
movzx edi, byte [eax + 6]
xor esi, ebx
xor esi, dword [edi*4 + 0x40b270]
mov dword [eax + 6], esi
movzx edi, byte [eax + 0xc]
movzx esi, byte [eax + 0xd]
mov ebx, dword [edi*4 + 0x40ba70]
mov esi, dword [esi*4 + 0x40be70]
movzx edi, byte [eax + 0xb]
xor esi, ebx
mov ebx, dword [edi*4 + 0x40b670]
movzx edi, byte [eax + 0xa]
xor esi, ebx
xor esi, dword [edi*4 + 0x40b270]
mov dword [eax + 0xa], esi
mov esi, dword [ecx + 0x1c]
inc edx
add eax, 0x10
cmp edx, esi
jb 0x404ab0
pop edi
pop esi
pop ebx
ret
Function at 0x406744
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x407898
call fcn.00406954
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
cmp word [eax], 0x5a4d
jne 0x406784
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406784
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40679c
cmp eax, 0x20b
je 0x406789
mov dword [ebp - 0x1c], edi
jmp 0x4067b0
cmp dword [ecx + 0x84], 0xe
jbe 0x406784
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4067aa
cmp dword [ecx + 0x74], 0xe
jbe 0x406784
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x410570], 0xffffffff
or dword [0x410574], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x410504]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x410500]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41056c], eax
call fcn.00406ae2
call fcn.00406b82
cmp dword [0x40c3a8], edi
jne 0x406810
push fcn.00406b82
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00406b70
push 0x409020
push 0x40901c
call sub.MSVCR71.dll__initterm
push 0x406b26
call fcn.004066ce
mov eax, dword [0x4104fc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4104f8]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x406864
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x409018
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x40688e
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x406948
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x4068fd
cmp ax, di
je 0x4068a4
cmp dword [ebp - 0x20], edi
jne 0x4068fd
mov ax, word [esi]
cmp ax, di
je 0x4068b9
cmp ax, 0x20
ja 0x4068b9
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x4068a4
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [0x40c3d4]
test byte [ebp - 0x58], 1
je 0x4068d5
movzx eax, word [ebp - 0x54]
jmp 0x4068d8
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.00402640
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x4068f5
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x406942
cmp ax, 0x22
jne 0x40690e
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x40688e
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040698f
ret
Function at 0x402a78
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040440c
test esi, esi
jne 0x402aae
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004044fc
jmp 0x402acc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040298c
mov edi, eax
test esi, esi
je 0x402acc
cmp dword [ebx], 0
je 0x402acc
dec esi
jmp 0x402ab5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403518
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46600c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4035b0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403590
xor eax, eax
push ebp
push 0x403589
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 0x4035cc
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 0x403590
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x46600c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46600c], ax
mov esp, ebp
pop ebp
ret

Function at 0x404290
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46804c], 0
je 0x4042f1
cmp word [0x468220], 0xd7b2
jne 0x4042b9
cmp dword [0x468228], 0
jbe 0x4042b9
mov eax, 0x46821c
call dword [0x468238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x466054
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 0x404318
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46601c], 0
jne 0x40430d
push 0
push 0x466074
push 0x466054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4099cc
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 pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409a05
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004044fc
jmp 0x409a0e
mov eax, ebx
mov edx, esi
call fcn.00404460
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409a18
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_1
test eax, eax
jle 0x409a39
mov al, byte [esp]
jmp 0x409a3b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a0c0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409f38
mov eax, dword [0x467068]
cmp byte [eax], 0
je 0x40a128
mov eax, dword [0x466e94]
call fcn.00402e34
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408bf0
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
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 0x40a170
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a15e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x466e50]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x468718]
call fcn.00405b38
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40acb0
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 0x40ad14
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_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404674
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040883c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ad1b
lea eax, [ebp - 0xc]
call fcn.0040440c
ret
Function at 0x41cc4c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x468a24
cmp dword [edi], 0
jne 0x41ccc8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x468a20]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4664cc
mov ecx, 2
call fcn.0040294c
mov edx, 0x41cc24
lea eax, [esi + 5]
call fcn.0041cc44
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041cc44
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 0x41cc9d
mov dword [0x468a20], 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 0x41e254
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41e25a
ret

Function at 0x420724
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x420775
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42075c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42074c
jmp 0x420775
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x42075d
pop ebx
mov esp, ebp
pop ebp
ret