joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c574
Capabilities:
Encode data using base64
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov eax, 0xff
push edi
mov edi, dword [ebp + 0x14]
mov ebx, edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
cmp edi, eax
ja 0x45b8ca
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 4], ecx
test al, 1
jne 0x45b8d1
and eax, 0x800
mov dword [ebp + 8], eax
je 0x45b9c9
mov dword [ebp - 0x18], esi
cmp esi, ebx
ja 0x41c5ec
mov edi, dword [ebp - 8]
mov eax, ebx
sub eax, esi
inc ecx
add ecx, eax
mov dword [ebp - 4], ecx
mov edx, esi
mov eax, esi
shr edx, 3
and eax, 7
movzx ecx, byte [edx + edi]
bts ecx, eax
inc esi
mov byte [edx + edi], cl
cmp esi, ebx
jbe 0x41c5ca
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
cmp esi, 0xff
ja 0x41c5f9
mov esi, 0x100
cmp edi, esi
jae 0x45b9e0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
push 0x1f
xchg dword [esi], ebx
or al, 0xfc
dec dword [ebx + 0x2bfe8bc3]
mov byte [eax - 0x77], 0x45
cld
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
movzx edx, byte [eax + edi]
adc al, 0x38
mov eax, dword [ebp - 8]
mov ecx, edx
shr ecx, 3
and edx, 7
movzx eax, byte [ecx + eax]
bts eax, edx
mov edx, dword [ebp - 8]
inc edi
mov byte [ecx + edx], al
cmp edi, ebx
jbe 0x45b9d8
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
jmp 0x41c5ec

Function at 0x41e5ca
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov ecx, dword [edi]
inc ecx
mov dword [ebp - 0x28], 1
cmp dword [eax + 0xc], 5
mov dword [edi], ecx
jne 0x45e981
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 8]
cmp ecx, dword [edx + 8]
jae 0x41e726
mov esi, dword [ebp - 8]
pop es
in al, dx
enter 1, 0
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x44], edi
invalid

Function at 0x41e77b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
inc ecx
or byte [ecx - 0x74dbdbbc], cl
inc ecx
add al, 0x8b
xor byte [ebx - 0x727c1732], cl
invalid
Function at 0x436a84
Capabilities:
Encode data using xor

Disassembly:
cmp byte [esi + 0x30], 0xd
sub eax, 1
jne 0x436a3c
or dword [esi], 0x1000c83
jmp 0x436a3c
mov eax, dword [ecx]
shr eax, 2
mov esp, eax
pop es
sub eax, 0
je 0x436a62
sub eax, 1
je 0x436a57
sub eax, 1
jne 0x436a6d
and dword [esi], edx
jmp 0x436a6d
mov eax, dword [esi]
and eax, edx
or eax, 0x8357f6f7
jmp 0x436a6b
mov eax, dword [esi]
and eax, edx
or eax, 0x890003f7
mov dword [esi], eax
cmp dword [ebp + 0x20], 0
pop esi
je 0x436a7b
fld dword [ecx + 0x50]
fstp dword [ebx]
jmp 0x436a80
fld qword [ecx + 0x50]
fstp qword [ebx]
pop edi
test dword [ecx - 0x1374aa02], ecx
push ebp
mov ebp, esp
push 0x8458980
cmp eax, 1
je 0x436aa6
add eax, 0xfffffffe
cmp eax, 1
ja 0x436ab1
call 0xbb53f301
mov dword [ebx + 0x5a6a22], 0x56e8c35d
mov byte [eax], dl
mov ebx, 0x6a2183c7
pop edx
add byte [ebp - 0x3d], bl
push ebp
mov ebp, esp
call 0xbb53f301
mov dword [ebx + 0x5a6a21], 0x8b55c35d
in al, dx
pop ebp
ret
push 0xc558980
sub esp, 0x20
xor ecx, ecx
mov eax, ecx
cmp dword [eax*8 + str._cabs], edx
je 0x436ad3
inc eax
cmp eax, 0x1d
jl 0x436ac2
jmp 0x436ada
mov ecx, dword [eax*8 + 0x4a2c94]
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x436b36
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
cld
pop ecx
lock add dword [ebp + 0x1c], 0xc
mov esi, eax
or byte [ebp - 0x28], al
mov dword [ebp + 0x45], eax
and byte [eax + 0x70], ch
inc edx
xor ebp, eax
add al, 0x81
sub byte [ecx - 0x76f98bbb], cl
and al, 0x89
jne 0x436af1
mov dword [ebp - 4], eax
call 0x89436d3f
invalid
push 0xe8334270
add al, 0x81
sub al, ch
cld
add eax, esi
call 0xe8436c28
cmp edi, edi
adc byte [ebx - 0x74dfba23], bh
ret
Function at 0x4696c2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [ebx]
push 2
pop edx
mov esi, dword [ecx + edi]
lea eax, [ecx + 4]
mov dword [ebx], eax
xor ecx, ecx
mov dword [ebp + 8], esi
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041fe4f
mov ecx, dword [ebx]
add esi, esi
add ecx, edi
mov edi, eax
push esi
push ecx
push edi
call fcn.00420e64
add dword [ebx], esi
xor eax, eax
mov ecx, dword [ebp + 8]
add esp, 0x10
mov word [esi + edi], ax
test ecx, ecx
jle 0x46971d
xor word [edi + eax*2], cx
inc eax
cmp eax, ecx
jl 0x469714
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x471fe6
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
sub dword [0x4d06e0], 1
jne 0x471ff9
call fcn.0047208a
mov eax, dword [0x4d2ff4]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4d2ff4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov dword [ebp - 4], eax
fild dword [ebp - 4]
jns 0x47203c
fadd qword [0x4c81c0]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x4c8190]
leave
ret

Function at 0x47204a
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
mov dword [0x4d2630], ecx
inc esi
mov edx, esi
mov eax, dword [edx*4 + 0x4d262c]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x4d2630], eax
inc edx
cmp edx, 0x270
jl 0x472056
mov dword [0x4d06e0], esi
mov dword [0x4d2ff0], esi
pop esi
ret

Function at 0x47208a
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4d2ff0], 0
push esi
push edi
mov esi, 0x4d2630
jne 0x4720ad
push 0
call fcn.0042e52c
pop ecx
mov ecx, eax
call fcn.0047204a
mov dword [0x4d06e0], 0x270
mov edx, 0x1f1f00e3
mov dword [0x4d2ff4], esi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, dword [esi]
shr ecx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi + 0x634]
mov dword [esi], ecx
add esi, 4
sub edx, 1
jne 0x4720c2
mov eax, dword [esi]
mov dword [ebp - 4], 0x89bb018c
mov edi, dword [esi + 4]
mov ecx, eax
xor ecx, edi
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edi
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edi
xor ecx, dword [esi - 0x38c]
sub dword [ebp - 4], 1
mov dword [esi], ecx
lea esi, [esi + 4]
jne 0x4720fc
mov eax, dword [0x4d2630]
mov ecx, edi
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, edi
shr ecx, 1
neg eax
pop edi
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
leave
ret
Function at 0x424d4f
Capabilities:
Encode data using xor

Disassembly:
dec edx
sti
xlatb
neg ebx
fidiv dword [edx + edi*8 + 0x38b422bd]
jno 0x424d97
invalid
retf

Function at 0x43eb1e
Capabilities:
Check for software breakpoints

Disassembly:
lodsb al, byte [esi]
retf
jns 0x43ea8a
test al, 4
sub al, 0x6c
cmp al, 0xcc
lcall 0x26f5, 0x838dff44
dec ebx
out dx, al
daa
in eax, 0x97
cli
aam 0x1b
dec ebp
mul ch
pop esi
mov ds, ecx
std
cwde
push 0xbe293ee2
xor eax, 0xef4e3ba6
pop es
mov cl, 0x50
call 0xf8817812
jnp 0x43eb6c
loope 0x43eb06
popfd
sbb dl, bl
cmpsd dword [esi], dword es:[edi]
xor dword [edx + eax + 0x19], edi
dec ecx
dec ebx
ret 0x18c5
pop ecx
sti
jmp 0x43ebb2
invalid

Function at 0x43f082
Capabilities:
Encode data using xor

Disassembly:
add dword [edi - 0x69756277], 0xffffffa1
movsb byte es:[edi], byte [esi]
stc
or dword fs:[ecx - 0x2f792e7e], edx
push esp
inc esp
add ah, byte [0xc81a306f]
adc esi, dword [esi - 0x4d7f35ec]
rol esp, 1
dec edi
xor al, byte [edx]
or eax, dword [edi - 0x5f962d0b]
mov ebx, 0x2567e1b5
mov ah, byte [esp + ecx*4]
leave
loop 0x43f0a2
xchg ebx, eax
invalid
Function at 0x629cf5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6323c0
cmp edx, dword [eax]
je 0x629d17
add eax, 8
inc ecx
cmp eax, 0x632450
jl 0x629d08
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6323c0]
jne 0x629e45
mov eax, dword [0x63ad68]
cmp eax, 1
je 0x629e1f
test eax, eax
jne 0x629d48
cmp dword [0x6322ec], 1
je 0x629e1f
cmp edx, 0xfc
je 0x629e45
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x629d7f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0062a6e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0062ab70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x629dc2
lea eax, [ebp - 0x1a4]
push eax
call fcn.0062ab70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62ea4c
push edi
call fcn.0062ca40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0062a6e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0062a6f0
lea eax, [ebp - 0xa0]
push 0x62ea2c
push eax
call fcn.0062a6f0
push dword [esi + 0x6323c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0062a6f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062c9b4
add esp, 0x2c
pop edi
jmp 0x629e45
lea eax, [ebp + 8]
lea esi, [esi + 0x6323c4]
push 0
push eax
push dword [esi]
call fcn.0062ab70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4029d0
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.00404104
test esi, esi
jne 0x402a06
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.004041f4
jmp 0x402a24
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402884
mov edi, eax
test esi, esi
je 0x402a24
cmp dword [ebx], 0
je 0x402a24
dec esi
jmp 0x402a0d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402ee8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x422008], 0x8088405
inc edx
mov dword [ebx + 0x422008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x40346c
Capabilities:
Query or enumerate registry value

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

Function at 0x403f0c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x423044], 0
je 0x403f6d
cmp word [0x423218], 0xd7b2
jne 0x403f35
cmp dword [0x423220], 0
jbe 0x403f35
mov eax, 0x423214
call dword [0x423230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x422070
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 0x403f94
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x422030], 0
jne 0x403f89
push 0
push 0x422068
push 0x422070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4040c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026bc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x423045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404088
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40578c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4059bc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40580f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4059bc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40580f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4059d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405898
xor eax, eax
push ebp
push 0x405891
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004055d4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405876
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4059f8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405876
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405898
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4059b2
cmp byte [ebp - 0xd], 0
jne 0x4058df
cmp byte [ebp - 0x12], 0
je 0x4059b2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4058f8
dec ebx
cmp byte [ebx], 0x2e
je 0x405907
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4058f7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4059b2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405944
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4059b2
cmp byte [ebp - 0xd], 0
je 0x4059b2
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4059b2
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406048
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4060ae
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404384
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f04
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406098
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4060b5
lea eax, [ebp - 0x10]
call fcn.00404104
ret

Function at 0x407e28
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004045cc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x407e41
test al, 0x10
jne 0x407e45
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b348
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 0x40b381
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004041f4
jmp 0x40b38a
mov eax, ebx
mov edx, esi
call fcn.00404158
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40ba3c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b8b4
mov eax, dword [0x422684]
cmp byte [eax], 0
je 0x40bab8
mov eax, dword [0x42258c]
call fcn.00402e1c
call fcn.004027b0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407fb8
push eax
lea eax, [esp + 0x50]
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 0x40bb00
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40baee
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x422568]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x423660]
call fcn.00405598
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 0x40c79c
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 0x40c800
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.00404384
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407aa8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c807
lea eax, [ebp - 0xc]
call fcn.00404104
ret

Function at 0x417638
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x58
call fcn.00402ec8
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret
Function at 0x418800
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffae8
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
test esi, esi
js 0x418820
shr esi, 2
mov edi, dword [ebx + esi*4]
dec esi
push edi
jns 0x418819
mov dword [ebp + 0x10], esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 0x10]
mov edx, 0x10
mov eax, esi
mov cl, byte [eax]
xor byte [ebp + 8], cl
inc eax
dec edx
jne 0x418833
lea edx, [ebp - 0x518]
mov eax, esi
mov ecx, 0x10
call fcn.00402844
lea edx, [ebp - 0x508]
lea eax, [ebp - 0x518]
mov ecx, 0x10
call fcn.00402844
lea edx, [ebp - 0x4f8]
lea eax, [ebp - 0x518]
mov ecx, 0x20
call fcn.00402844
lea edx, [ebp - 0x4d8]
lea eax, [ebp - 0x518]
mov ecx, 0x40
call fcn.00402844
lea edx, [ebp - 0x498]
lea eax, [ebp - 0x518]
mov ecx, 0x80
call fcn.00402844
xor eax, eax
mov al, byte [ebp + 8]
mov al, byte [ebp + eax - 0x518]
mov byte [ebp + 8], al
mov edx, 0xff
lea eax, [ebp - 0x518]
mov cl, byte [eax + 1]
xor cl, byte [ebp + 8]
and ecx, 0xff
mov cl, byte [ebp + ecx - 0x518]
xor cl, byte [eax]
xor cl, byte [ebp + 8]
mov byte [eax], cl
mov byte [ebp + 8], cl
inc eax
dec edx
jne 0x4188c0
mov al, byte [ebp - 0x518]
xor al, byte [ebp + 8]
and eax, 0xff
mov al, byte [ebp + eax - 0x518]
xor al, byte [ebp - 0x419]
xor al, byte [ebp + 8]
mov byte [ebp - 0x419], al
mov byte [ebp + 8], al
xor eax, eax
mov al, byte [ebp + 8]
mov al, byte [ebp + eax - 0x518]
mov byte [ebp + 8], al
lea edx, [ebp - 0x218]
mov eax, esi
mov ecx, 0x10
call fcn.00402844
lea eax, [ebp - 0x418]
push eax
push 0x1ff
lea eax, [ebp - 0x518]
push eax
push 0xff
mov al, byte [ebp + 8]
push eax
lea eax, [ebp - 0x218]
mov ecx, 0x10
mov edx, 0x20f
call fcn.004185a0
xor eax, eax
mov al, byte [ebp + 8]
mov al, byte [ebp + eax - 0x518]
mov byte [ebp + 8], al
lea edx, [ebp - 0x208]
lea eax, [ebp - 0x418]
mov ecx, 0x200
call fcn.00402844
lea eax, [ebp - 0x418]
push eax
push 0x1ff
lea eax, [ebp - 0x518]
push eax
push 0xff
mov al, byte [ebp + 8]
push eax
lea eax, [ebp - 0x218]
mov ecx, 0x210
mov edx, 0x20f
call fcn.004185a0
mov esi, dword [ebp - 8]
dec esi
test esi, esi
jl 0x418a41
xor eax, eax
mov al, byte [ebp + 8]
mov al, byte [ebp + eax - 0x518]
mov byte [ebp + 8], al
lea edx, [ebp - 0x208]
lea eax, [ebp - 0x418]
mov ecx, 0x200
call fcn.00402844
lea eax, [ebp - 0x418]
push eax
push 0x1ff
lea eax, [ebp - 0x518]
push eax
push 0xff
mov al, byte [ebp + 8]
push eax
lea eax, [ebp - 0x218]
mov ecx, 0x210
mov edx, 0x20f
call fcn.004185a0
mov edx, 0x200
lea eax, [ebp - 0x418]
mov cl, byte [eax]
test esi, esi
jl 0x418a39
mov ebx, dword [ebp - 4]
xor byte [ebx + esi], cl
dec esi
test esi, esi
jl 0x418a39
mov ebx, dword [ebp - 4]
xor byte [ebx + esi], cl
dec esi
inc eax
dec edx
jne 0x418a1d
test esi, esi
jge 0x4189bc
mov edi, dword [ebp - 0x524]
mov esi, dword [ebp - 0x520]
mov ebx, dword [ebp - 0x51c]
mov esp, ebp
pop ebp
ret 0xc