joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, ecx
nop dword [eax + eax]
mov edi, dword [esi + 4]
mov ebx, dword [esi]
push 0x5851f42d
push 0x4c957f2d
push edi
push ebx
call fcn.00451e00
add eax, dword [esi + 8]
mov ecx, edi
mov dword [esi], eax
mov eax, edi
adc edx, dword [esi + 0xc]
shrd ebx, eax, 0x1b
shr ecx, 0xd
xor ebx, ecx
shr edi, 0x1b
mov ecx, edi
shr eax, 0x1b
not ecx
mov dword [esi + 4], edx
inc ecx
mov dword [ebp - 4], 0
and ecx, 0x1f
mov eax, ebx
shl eax, cl
mov ecx, edi
shr ebx, cl
or eax, ebx
cmp eax, 0x1c80
jb 0x448690
xor edx, edx
mov ecx, 0x2710
div ecx
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x44c530
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x58c084]
xor eax, esp
mov dword [esp + 0x60], eax
push esi
mov esi, dword [ebp + 8]
push edx
mov edx, ecx
mov dword [esp + 0xc], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
call fcn.0044bb80
add esp, 4
lea ecx, [esp + 8]
mov edx, esi
call fcn.0044bc40
mov ecx, dword [esp + 0x64]
mov al, 1
pop esi
xor ecx, esp
call fcn.00451305
mov esp, ebp
pop ebp
ret
Function at 0x44ee10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x527cf8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x58c084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x44ef7b
cmp byte [ebx + 0x3d], 0
je 0x44ef7b
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x44ee69
xor al, al
jmp 0x44ef7d
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0044d290
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmp edx, 0x10
lea esi, [ebp - 0x28]
cmovae esi, eax
cmovae edi, eax
mov edx, dword [ecx]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x44eed3
sub eax, 1
je 0x44eed7
mov edx, dword [ebp - 0x14]
sub eax, 2
mov eax, dword [ebp - 0x28]
je 0x44ef2d
xor bl, bl
jmp 0x44ef2f
mov byte [ebx + 0x3d], 0
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp edx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae ecx, eax
sub esi, ecx
je 0x44ef0f
push dword [ebx + 0x4c]
cmp edx, 0x10
lea ecx, [ebp - 0x28]
push esi
cmovae ecx, eax
push 1
push ecx
call fcn.0050d24d
mov edx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
mov eax, dword [ebp - 0x28]
jne 0x44eecf
cmp byte [ebx + 0x3d], 0
je 0x44ef2d
test esi, esi
jne 0x44ee94
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.0044ec20
jmp 0x44ee8e
mov bl, 1
cmp edx, 0x10
jb 0x44ef77
lea ecx, [edx + 1]
cmp ecx, 0x1000
jb 0x44ef6e
test byte [ebp - 0x28], 0x1f
je 0x44ef4a
call fcn.0050a642
mov ecx, dword [eax - 4]
cmp ecx, eax
jb 0x44ef56
call fcn.0050a642
sub eax, ecx
cmp eax, 4
jae 0x44ef62
call fcn.0050a642
cmp eax, 0x23
jbe 0x44ef6c
call fcn.0050a642
mov eax, ecx
push eax
call fcn.00451349
add esp, 4
mov al, bl
jmp 0x44ef7d
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00451305
mov esp, ebp
pop ebp
ret
Function at 0x44f6a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x527886
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x58c084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00451316
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00450343
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4af7c0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0x10]
mov edx, 0x400
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, 0x80
mov esi, edx
mov ecx, edi
mov byte [ebp], 0
cmp dword [esp + 0x18], ecx
cmovle ecx, dword [esp + 0x18]
test eax, eax
cmovg esi, eax
cmp esi, edx
cmovg esi, edx
mov dword [esp + 0x14], esi
test ecx, ecx
jle 0x4af815
mov ebx, dword [esp + 0x1c]
mov edx, ebp
sub ebx, ebp
mov esi, ecx
mov al, byte [ebx + edx]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub esi, 1
jne 0x4af803
mov esi, dword [esp + 0x14]
movzx ebx, byte [ecx + ebp - 1]
cmp ecx, edi
jge 0x4af83a
mov edx, ebp
movzx eax, byte [edx]
lea edx, [edx + 1]
add eax, ebx
movzx eax, al
movzx ebx, byte [eax + 0x567128]
mov byte [ecx + ebp], bl
inc ecx
cmp ecx, edi
jl 0x4af820
mov ecx, dword [esp + 0x14]
lea ebx, [esi + 7]
sar ebx, 3
neg ecx
sub edi, ebx
and ecx, 7
movzx eax, byte [edi + ebp]
lea esi, [edi + ebp]
mov edx, 0xff
sar edx, cl
and edx, eax
movzx ecx, byte [edx + 0x567128]
mov byte [esi], cl
test edi, edi
je 0x4af888
nop dword [eax + eax]
movzx eax, byte [esi + ebx - 1]
lea esi, [esi - 1]
xor eax, ecx
movzx ecx, byte [eax + 0x567128]
mov byte [esi], cl
sub edi, 1
jne 0x4af870
lea esi, [ebp + 0xfc]
mov edi, 0x40
lea edx, [ebp + 0x7e]
movzx ecx, byte [edx + 1]
lea esi, [esi - 4]
movzx eax, byte [edx]
lea edx, [edx - 2]
shl ecx, 8
or ecx, eax
mov dword [esi + 4], ecx
sub edi, 1
jne 0x4af896
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4b6980
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x4b6994
mov dword [esp + 0x18], fcn.004b5160
jmp fcn.0045a4e0
mov dword [esp + 0x18], fcn.004b4400
jmp fcn.0045a210

Function at 0x51b872
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0051b6f1
Function at 0x5a9cb0
Capabilities:
Contain obfuscated stackstrings
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 0x48
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0x10]
cmp ebx, esi
je 0x5a9e12
cmp edi, esi
je 0x5a9e12
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
add eax, edi
mov dword [ebp - 0x48], 0x44434241
mov dword [ebp - 0x44], 0x48474645
mov dword [ebp - 0x40], 0x4c4b4a49
mov dword [ebp - 0x3c], 0x504f4e4d
mov dword [ebp - 0x38], 0x54535251
mov dword [ebp - 0x34], 0x58575655
mov dword [ebp - 0x30], 0x62615a59
mov dword [ebp - 0x2c], 0x66656463
mov dword [ebp - 0x28], 0x6a696867
mov dword [ebp - 0x24], 0x6e6d6c6b
mov dword [ebp - 0x20], 0x7271706f
mov dword [ebp - 0x1c], 0x76757473
mov dword [ebp - 0x18], 0x7a797877
mov dword [ebp - 0x14], 0x33323130
mov dword [ebp - 0x10], 0x37363534
mov dword [ebp - 0xc], 0x2f2b3938
mov dword [ebp - 4], esi
mov ecx, edi
mov dword [ebp - 8], eax
cmp edx, esi
jbe 0x5a9e02
add edi, 4
jmp 0x5a9d63
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x5a9d78
mov dword [ebp - 4], 2
jmp 0x5a9d99
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x5a9d8f
mov dword [ebp - 4], 1
jmp 0x5a9d99
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x5a9e12
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x48]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x48]
mov byte [ecx + 1], bl
mov ebx, dword [ebp - 4]
cmp ebx, 1
jbe 0x5a9dd0
mov byte [ecx + 2], 0x3d
jmp 0x5a9ddd
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x48]
mov byte [ecx + 2], al
add ecx, 3
add edi, 3
test ebx, ebx
je 0x5a9dec
mov byte [ecx], 0x3d
jmp 0x5a9df2
mov dl, byte [ebp + edx - 0x48]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x5a9d60
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
sub ecx, edi
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x484cef
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x484a08
sub esi, esi
call fcn.00484d33
sub edi, 0x9b373c91
add edi, esi
sub edi, 0x9414aa9a
xor dword [edx], eax
add esi, 0x70108f52
add edx, 2
dec esi
add esi, edi
cmp edx, ecx
jl fcn.00484cef
add edi, esi
add esi, 0xdc119e15
sub esi, 1
ret
Function at 0x43b642
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43b3c1
inc ecx
inc edi
add edi, edi
call fcn.0043b68b
mov edi, 0x39d758d6
mov ecx, 0xf951bcb2
xor dword [ebx], edx
sub edi, 0x77267e33
sub edi, 1
inc ebx
add edi, ecx
add edi, 0x3e64b402
cmp ebx, eax
jne fcn.0043b642
and edi, ecx
ret

Function at 0x414de7
Capabilities:
Encode data using xor

Disassembly:
xor dword [ebx], esi
add ebx, 4
inc edx
and edi, edi
cmp ebx, ecx
jne fcn.00414de7
and eax, edx
add eax, edx
mov edi, 0xba7a3eed
ret
Function at 0x401140
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
push str.CreateProcessA
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x437f98], eax
push str.VirtualAlloc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x437f9c], eax
push str.GetThreadContext
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x437fa0], eax
push str.VirtualAllocEx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x437fa4], eax
push str.ResumeThread
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x437fa8], eax
push 0x417324
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x437fac], eax
push str.WriteProcessMemory
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x437fb0], eax
push str.SetThreadContext
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x437fb4], eax
push 0x417358
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x437fb8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esp, ebp
pop ebp
ret
Function at 0x401570
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1120
call fcn.00404150
mov eax, dword [0x437614]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1114]
push eax
push 0x1000
lea ecx, [ebp - 0x1108]
push ecx
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
jne 0x4015aa
xor al, al
jmp 0x4016cd
mov edx, dword [ebp - 0x1114]
shr edx, 2
mov dword [ebp - 0x1118], edx
mov dword [ebp - 0x110c], 0
jmp 0x4015d4
mov eax, dword [ebp - 0x110c]
add eax, 1
mov dword [ebp - 0x110c], eax
mov ecx, dword [ebp - 0x110c]
cmp ecx, dword [ebp - 0x1118]
jae 0x4016cb
mov edx, dword [ebp - 0x110c]
cmp dword [ebp + edx*4 - 0x1108], 0
je 0x4016c6
mov eax, dword [str._unknown_]
mov dword [ebp - 0x108], eax
mov ecx, dword [0x417370]
mov dword [ebp - 0x104], ecx
mov dx, word [0x417374]
mov word [ebp - 0x100], dx
push 0xfa
push 0
lea eax, [ebp - 0xfe]
push eax
call fcn.00404e00
add esp, 0xc
mov ecx, dword [ebp - 0x110c]
mov edx, dword [ebp + ecx*4 - 0x1108]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1110], eax
cmp dword [ebp - 0x1110], 0
je 0x4016c6
lea eax, [ebp - 0x1120]
push eax
push 4
lea ecx, [ebp - 0x111c]
push ecx
mov edx, dword [ebp - 0x1110]
push edx
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x40169e
push 0x104
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x111c]
push ecx
mov edx, dword [ebp - 0x1110]
push edx
call sub.KERNEL32.dll_K32GetModuleBaseNameA
mov eax, dword [ebp - 0x1110]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.00406e80
add esp, 8
test eax, eax
jne 0x4016c6
mov al, 1
jmp 0x4016cd
jmp 0x4015c5
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404133
mov esp, ebp
pop ebp
ret

Function at 0x4016e0
Capabilities:
Get common file path
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push str.mbarun.exe
call fcn.00401570
add esp, 4
movzx eax, al
test eax, eax
je 0x4016fe
push 0xffffffffffffffff
call fcn.00407247
push str.read
push 4
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 9
jne 0x401717
push 0xffffffffffffffff
call fcn.00407247
call fcn.00401140
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x19600
push section..data
call fcn.00401220
add esp, 8
push section..data
call fcn.00401290
add esp, 4
xor eax, eax
pop ebp
ret

Function at 0x4043d1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404410
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404410
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404410
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404410
cmp dword [ecx + 0x74], 0xe
jbe 0x404410
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40abe2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x418d58
push 0x418d50
push str.FlsAlloc
push 0x1f
call fcn.0040aaa1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ac16
push dword [ebp + 8]
mov ecx, esi
call dword [0x417138]
call esi
jmp 0x40ac1c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40ac60
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x418d68
push 0x418d60
push str.FlsGetValue
push 0x21
call fcn.0040aaa1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ac97
push dword [ebp + 8]
mov ecx, esi
call dword [0x417138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40ac9f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x418d70
push 0x418d68
push str.FlsSetValue
push 0x22
call fcn.0040aaa1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40acd9
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x417138]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40dbfb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40dc98
push ebx
push esi
call fcn.0040dbc4
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040db58
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40dc45
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40dc97
push edi
push eax
call fcn.0040b391
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40dc65
call fcn.0040a934
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40dc96
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040db58
add esp, 0x20
test eax, eax
jne 0x40dc84
push edi
call fcn.0040a934
jmp 0x40dc8c
push ebx
call fcn.0040a934
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x415bd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x415bfd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x415bfd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40ed61
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x40eae0
mov eax, eax
dec eax
call fcn.0040ed7c
xor dword [edx], ebx
inc edx
add ecx, 0x463ea448
cmp edx, esi
jne fcn.0040ed61
ret
Function at 0x402aa0
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.0040455c
test esi, esi
jne 0x402ad6
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.0040464c
jmp 0x402af4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029b4
mov edi, eax
test esi, esi
je 0x402af4
cmp dword [ebx], 0
je 0x402af4
dec esi
jmp 0x402add
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4035c8
Capabilities:
Query or enumerate registry value

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

Function at 0x40435c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x53204c], 0
je 0x4043bd
cmp word [0x532220], 0xd7b2
jne 0x404385
cmp dword [0x532228], 0
jbe 0x404385
mov eax, 0x53221c
call dword [0x532238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4f0058
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 0x4043e4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4f0020], 0
jne 0x4043d9
push 0
push 0x4f0078
push 0x4f0058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404510
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.004027bc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x53204d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4044d8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4062a0
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 0x4064d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406323
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4064d0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406323
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4064ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4063ac
xor eax, eax
push ebp
push 0x4063a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004060e8
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 0x40638a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40650c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40638a
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 0x4063ac
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 0x4064c6
cmp byte [ebp - 0xd], 0
jne 0x4063f3
cmp byte [ebp - 0x12], 0
je 0x4064c6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40640c
dec ebx
cmp byte [ebx], 0x2e
je 0x40641b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40640b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4064c6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406458
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 0x4064c6
cmp byte [ebp - 0xd], 0
je 0x4064c6
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 0x4064c6
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