joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44cad0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x481248
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0047975a
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0044c470
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00479688
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00475f43
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00475f43
push 1
push 0
push 0
mov ecx, esi
call fcn.00475eeb
push 1
push 0
push 1
mov ecx, esi
call fcn.00475eeb
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004797cc
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x44cc50
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x481268
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0047975a
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0044c470
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00479688
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x44cd14
cmp dword [esp + 0x40], 1
jne 0x44cd12
cmp ecx, eax
jge 0x44cd14
mov eax, ecx
cmp eax, 0xc8
jge 0x44cd20
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0044cad0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004797cc
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x44d4a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4812d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00474363
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00479a02
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047b018
test eax, eax
je 0x44d5bc
mov ecx, dword [esp + 0x3c]
call fcn.00479a2f
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x44d580
push edi
mov ecx, esi
call fcn.0047708f
mov ecx, esi
call fcn.0044d720
cmp dword [esp + 0x38], 1
jne 0x44d5b5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004771ca
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x44fff0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x450023
push esi
call fcn.004530e0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45001c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4500a9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x450092
mov eax, dword [esi + 8]
test eax, eax
je 0x450047
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45008e
cmp eax, 2
je 0x450092
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45003a
cmp eax, 3
je 0x45006d
cmp eax, 1
jne 0x45003a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45003a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45003a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004500d0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4500b8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004500d0
add esp, 4
pop esi
ret

Function at 0x45c500
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x4be314]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x45c513
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x45c554
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x4be3bc]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x45c586
mov bl, byte [esp + ecx + 0x4c]
jmp 0x45c58a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x45c57b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x45c5a8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x45c5ac
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x45c59d
xor ecx, ecx
mov eax, 0x4be324
xor ebx, ebx
mov bl, byte [ecx + 0x4be3cc]
cmp byte [esp + ebx + 0x14], 0
je 0x45c5d7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x4be3e4]
cmp byte [esp + ebx + 0x14], 0
je 0x45c5ee
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x45c5be
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x45c547
lea edx, [esp + 0x84]
push edx
call fcn.0045c630
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x45e5f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x45e656
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x45e656
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x45e637
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x45e9e0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x45ea18
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x45f6f0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x45f739
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x45fbb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4817d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0045f760
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0045f7e0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0045f7e0
lea ecx, [esi + 0xc]
call fcn.00472d40
lea ecx, [esi + 0x10]
call fcn.00472d40
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00460d70
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00460d70
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00460d70
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00472db5
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00472db5
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x475159
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x475191
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00473210
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004731e8
jmp 0x47519d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x476847
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x476889
call fcn.0047c6bf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x476889
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x476880
xor eax, eax
jmp 0x476891
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00476897
pop edi
pop esi
pop ebx
ret 4

Function at 0x47cbef
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47cc1d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47cc3b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047cb55
jmp 0x47cc3b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47cc3b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047cb55
test edi, edi
mov eax, edi
jne 0x47cc25
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403015
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x403024
pop dword [ebp - 0x40]
mov eax, 0x403024
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x97bcbdc6
add dword [ebp - 0x50], 0xb6958785
mov dword [ebp - 0x4c], 0x8ae4fa8d
sub dword [ebp - 0x4c], 0x58b1ae48
mov dword [ebp - 0x48], 0x8f81173f
sub dword [ebp - 0x48], 0x4334d311
mov dword [ebp - 0x44], 0x9280ea8e
sub dword [ebp - 0x44], 0x9280ea8e
lea eax, [ebp - 0x50]
push eax
mov eax, 0x6b20bae9
add eax, 0x951fc58f
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xe31add27
sub dword [ebp - 0x50], 0x6ea873d1
mov dword [ebp - 0x4c], 0x9ec278f6
sub dword [ebp - 0x4c], 0x5d561781
mov dword [ebp - 0x48], 0x71b8d80f
add dword [ebp - 0x48], 0xf1b6945d
mov dword [ebp - 0x44], 0x51529318
add dword [ebp - 0x44], 0xaead6ce8
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0xc8364c70
sub eax, 0xc7f5cbf4
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x37eac
push 0
call eax
mov ecx, 0x6fd772fe
add ecx, 0x9028d886
mov edi, eax
mov esi, 0xa87a8712
add esi, 0x57cb0aee
add esi, dword [ebp - 0x40]
mov ebx, 0xa680903b
sub dword [ebp - 0x24], 0xb488718
mov edx, dword [esi]
sub dword [ebp - 8], esi
xor edx, ebx
sub dword [ebp - 0x18], 0xf175adfa
mov dword [edi], edx
mov dword [ebp - 0x34], 0x5dce45ca
add edi, 0x65d868ca
sub edi, 0x65d868c6
add esi, 0xfd606db7
add esi, 0x29f924d
loop 0x40313b
add eax, 0xbdc2112a
add eax, 0x423f0fb9
xor ebx, ebx
add ebx, eax
add eax, 0x7d85c0db
sub eax, 0x7d85c0d6
mov ecx, 0x400000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x40c279
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x40c288
pop dword [ebp - 0x24]
mov eax, 0x6b508e81
sub eax, 0x6b0fcbf9
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x1e50bab
sub dword [ebp - 0x34], 0xb392c660
mov dword [ebp - 0x30], 0x44411b71
sub dword [ebp - 0x30], 0x120dcf2c
mov dword [ebp - 0x2c], 0x7b6b1fc5
sub dword [ebp - 0x2c], 0x2f1edb97
mov dword [ebp - 0x28], 0xc1ecd58d
sub dword [ebp - 0x28], 0xc1ecd58d
lea eax, [ebp - 0x34]
push eax
mov eax, 0xb785d596
add eax, 0x48bc5ade
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x6bf052e0
add dword [ebp - 0x34], 0x8821676
mov dword [ebp - 0x30], 0x45b8fd2e
sub dword [ebp - 0x30], 0x44c9bb9
mov dword [ebp - 0x2c], 0x2ba8f482
sub dword [ebp - 0x2c], 0xc8398816
mov dword [ebp - 0x28], 0x8c9bfcd2
sub dword [ebp - 0x28], 0x8c9bfcd2
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0xe6b12080
add eax, 0x199110a4
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3e29b
push 0
call eax
mov ecx, 0x5f742076
add ecx, 0xa08c2972
mov esi, eax
mov edi, 0x2b562e5
sub edi, 0x2721ee5
add edi, dword [ebp - 0x24]
mov ebx, 0x7c10ef25
sub dword [ebp - 0xc], ebx
mov edx, dword [edi]
mov dword [ebp - 4], 0x5fb350ec
xor edx, ebx
mov dword [ebp - 0xc], 0x231f117a
mov dword [esi], edx
mov dword [ebp - 4], 0x21d389d3
add esi, 4
add edi, 0x4fdfe150
add edi, 0xb0201eb4
loop 0x40c3a4
add eax, 0x4c5a7db2
sub eax, 0x4c59633f
xor ebx, ebx
add ebx, eax
add eax, 0x239a8469
add eax, 0xdc657b9c
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40f02c], 0x8088405
inc edx
mov dword [0x40f02c], edx
mul edx
mov eax, edx
ret

Function at 0x403cd0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x403d2c
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_ReadFile
dec eax
pop eax
pop ecx
jne 0x403d1e
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x403d13
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x403d0e
mov eax, 0x64
jmp 0x403d23
call sub.kernel32.dll_GetLastError
call fcn.00402674
xor eax, eax
jmp 0x403d0e
mov eax, 0x67
jmp 0x403d23

Function at 0x403d34
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov eax, dword [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x403d8f
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_WriteFile
dec eax
pop eax
pop ecx
jne 0x403d81
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x403d76
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x403d71
mov eax, 0x65
jmp 0x403d86
call sub.kernel32.dll_GetLastError
call fcn.00402674
xor eax, eax
jmp 0x403d71
mov eax, 0x67
jmp 0x403d86

Function at 0x403e18
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x403e48
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x403e3e
xor edx, edx
div dword [ebx + 8]
pop ebx
ret
call fcn.00402684
or eax, 0xffffffff
jmp 0x403e3c
mov eax, 0x67
call fcn.00402674
or eax, 0xffffffff
jmp 0x403e3c

Function at 0x40548c
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
test eax, eax
jle 0x4054c5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040325c
jmp 0x4054ce
mov eax, ebx
mov edx, esi
call fcn.00403210
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4054d8
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 0x4054f9
mov al, byte [esp]
jmp 0x4054fb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4072d8
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40f580
mov eax, esi
mov edx, 8
test al, 1
je 0x4072f4
shr eax, 1
xor eax, 0xedb88320
jmp 0x4072f6
shr eax, 1
dec edx
jne 0x4072e7
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4072e0
pop esi
ret
Function at 0x40730c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp byte [0x40f57c], 0
jne 0x40732a
call fcn.004072d8
mov byte [0x40f57c], 1
mov eax, edi
test esi, esi
je 0x407355
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40f580]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x407330
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40b1ec
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40b271
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x40b254
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0040b4f4
mov eax, dword [ebp - 0xc]
call fcn.0040341c
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b25b
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x40b2f8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
mov esi, eax
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
xor eax, eax
mov dl, byte [ebx]
sub dl, 1
jb 0x40b324
sub dl, 0x1f
je 0x40b31c
sub dl, 2
je 0x40b318
jmp 0x40b320
xor al, 1
jmp 0x40b320
test al, al
je 0x40b324
inc ebx
jmp 0x40b305
inc ebx
cmp byte [ebx], 0x20
je 0x40b323
mov eax, esi
mov edx, ebx
call fcn.0040329c
pop esi
pop ebx
ret

Function at 0x40b598
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00405014
add esp, 0x104
pop ebx
ret

Function at 0x40b6e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40b789
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x40b773
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x40b72c
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x40b773
cmp dword [ebp - 0xc], 2
jge 0x40b73e
mov eax, dword [ebp - 4]
call fcn.0040317c
mov bl, 1
jmp 0x40b773
mov edx, dword [ebp - 0xc]
dec edx
lea eax, [ebp - 0x10]
call fcn.004034f8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.00403428
push eax
push 0
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x40b773
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.004031cc
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b790
lea eax, [ebp - 0x10]
call fcn.0040317c
ret