joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408df6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x244]
sub esp, 0x254
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edx
push edx
lea edx, [eax - 1]
cmp edx, 0x103
ja 0x408e34
xor edx, edx
cmp word [ebp + eax*2 - 0x246], 0x5c
sete dl
jmp 0x408e3b
xor eax, eax
mov edx, 1
mov ecx, dword [ebp + 8]
add edx, edx
add eax, eax
mov dword [esp + 4], str._s_S.dll
add edx, 0x40c660
add eax, ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret 4

Function at 0x408fdc
Capabilities:
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x43d564], 0
mov ebp, esp
push esi
mov edx, dword [ebp + 0xc]
push ebx
jne 0x409019
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
shr esi, 1
and eax, 1
je 0x409004
mov eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x408ff6
mov dword [ecx*4 + 0x43d560], eax
inc ecx
cmp ecx, 0x100
jne 0x408fef
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
cmp edx, ebx
je 0x40903b
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x43d560]
jmp 0x409023
pop ebx
not eax
pop esi
pop ebp
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x24b86773
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x4a5a577e
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6a
nop
sub eax, 0x403d10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x16af659e
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x158877a2
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x407030
Capabilities:
Create directory
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43251d
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x4447d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
sub esp, 0x18
mov dword [ebp - 0x158], 0
mov ecx, esp
mov dword [ebp - 0x160], esp
push 0x43456c
mov dword [ebp - 4], 0
mov dword [ebp - 0x164], esi
call fcn.00401120
sub esp, 0x18
mov ecx, esp
push str._t_e_m_p__
mov dword [ebp - 4], 1
call fcn.00401120
push esi
mov byte [ebp - 4], 0
call fcn.00410300
add esp, 0x34
lea eax, [ebp - 0x13c]
push eax
push 0
push 0
push 0x1c
push 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x158], 1
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push esi
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x17c]
push eax
call fcn.00402040
add esp, 0xc
mov ecx, esi
push eax
call fcn.004063e0
lea ecx, [ebp - 0x17c]
call fcn.00401190
push str.C_zAHZtVfAkuRnpySqJTroWm
lea ecx, [ebp - 0x154]
call fcn.00401120
push 0
mov ecx, esi
call fcn.0040e3f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x154]
call fcn.00401190
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041bcf4
mov esp, ebp
pop ebp
ret
Function at 0x408f40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4329d8
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x4447d0]
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
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x408f85
xor al, al
jmp 0x40902f
push str.lHxPRl_lUSbKactaaNszF
lea ecx, [ebp - 0x2c]
call fcn.00401120
lea eax, [ebp - 0x154]
push eax
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x154], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x409023
mov ebx, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00401d50
cmp eax, 0x4e
jbe 0x408fd9
push str.wfydtHAXAAOmgtwWeb_c
lea ecx, [ebp - 0x2c]
call fcn.004011b0
mov ecx, ebx
lea eax, [ebp - 0x130]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x409001
test dl, dl
je 0x408ffd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x409001
add eax, 2
add ecx, 2
test dl, dl
jne 0x408fe1
xor eax, eax
jmp 0x409006
sbb eax, eax
or eax, 1
test eax, eax
jne 0x409012
cmp esi, dword [ebp - 0x14c]
jne 0x40904b
lea eax, [ebp - 0x154]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x408fb7
xor bl, bl
lea ecx, [ebp - 0x2c]
call fcn.00401190
mov al, bl
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.0041bcf4
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.USER32.dll_GetTopWindow]
mov edi, eax
test edi, edi
je 0x4090c1
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
lea ecx, [ebp - 0x2c]
call fcn.00401d50
cmp eax, 0x37
jbe 0x40907f
push str.auXMWulVQWcDI_EqgHUlV_QX
lea ecx, [ebp - 0x2c]
call fcn.004011b0
lea eax, [ebp - 0x14]
push eax
push edi
call esi
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x14c]
je 0x4090a0
push 2
push edi
call ebx
mov edi, eax
test edi, edi
jne 0x409065
mov bl, 1
jmp 0x409025
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push edi
call esi
push 6
push edi
call esi
push 9
push edi
call esi
push 1
push edi
call esi
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov bl, 1
jmp 0x409025
Function at 0x409d70
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.00409cd0
add esp, 4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ebp
ret

Function at 0x40c5f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
xor ecx, ecx
mov edx, 0x811c9dc5
test esi, esi
je 0x40c618
push edi
mov edi, dword [ebp + 8]
movzx eax, byte [ecx + edi]
xor edx, eax
inc ecx
imul edx, edx, 0x1000193
cmp ecx, esi
jb 0x40c606
pop edi
mov eax, edx
pop esi
pop ebp
ret
Function at 0x410810
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4447d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x410844
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x410844
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebx]
test al, al
je 0x4108e9
push esi
mov esi, ebx
mov ecx, ebx
cmp al, 0x2f
je 0x41085b
cmp al, 0x5c
jne 0x41085d
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x410853
cmp esi, ebx
je 0x41089c
sub esi, ebx
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0041c150
add esp, 0xc
cmp esi, 0x104
jae 0x4108f9
lea eax, [ebp - 0x20c]
push eax
push edi
mov byte [ebp + esi - 0x20c], 0
call fcn.00410810
add esp, 8
mov byte [ebp - 0x108], 0
pop esi
test edi, edi
je 0x4108b8
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00410660
add esp, 8
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.00410640
add esp, 8
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4108e9
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0041bcf4
mov esp, ebp
pop ebp
ret
call fcn.0041b2a2
int3

Function at 0x410f50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x41100c
cmp dword [esi + 4], 0xffffffff
jne 0x41100c
push edi
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410f81
sub ecx, edx
mov al, byte [ecx + esi + 0x13f]
cmp al, 0x5c
je 0x410fa7
cmp al, 0x2f
je 0x410fa7
push 0x437f20
push edi
call fcn.00410640
add esp, 8
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x410fcd
push edi
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x410fcd
pop edi
mov eax, 0x2000000
pop esi
pop ebp
ret 0xc
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00413bb0
add esp, 0x10
test eax, eax
jne 0x410fed
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebp
ret 0xc
push eax
call fcn.004142f0
add esp, 4
xor ecx, ecx
test eax, eax
mov edx, 0x200
mov dword [esi], eax
cmove ecx, edx
pop edi
mov eax, ecx
pop esi
pop ebp
ret 0xc
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x411590
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movsx eax, byte [ebp + 0xc]
mov ecx, dword [edx]
xor eax, ecx
shr ecx, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x436498]
xor eax, ecx
movzx ecx, al
add ecx, dword [edx + 4]
mov dword [edx], eax
mov eax, dword [edx + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [edx + 4], ecx
shr ecx, 0x18
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x436498]
mov dword [edx + 8], eax
pop ebp
ret
Function at 0x413ce0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4447d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ebx
imul esi, dword [ebp + 0x10]
cmp byte [edi], 0
mov dword [ebp - 8], eax
je 0x413d28
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x413d23
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x413d50
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x413d39
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 8]
call fcn.0041c150
add esp, 0xc
add dword [edi + 0x1c], esi
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor edx, edx
div ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bcf4
mov esp, ebp
pop ebp
ret

Function at 0x413e80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x413e8e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x413f6d
push edi
mov edi, esi
shr edi, 3
jmp 0x413eb0
movzx ecx, byte [edx]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x436498]
movzx ecx, byte [edx + 1]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x436498]
movzx ecx, byte [edx + 2]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x436498]
movzx ecx, byte [edx + 3]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x436498]
movzx ecx, byte [edx + 4]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x436498]
movzx ecx, byte [edx + 5]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x436498]
movzx ecx, byte [edx + 6]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x436498]
movzx ecx, byte [edx + 7]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x436498]
add edx, 8
sub esi, 8
dec edi
jne 0x413eb0
pop edi
test esi, esi
je 0x413f8c
movzx ecx, byte [edx]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x436498]
lea edx, [edx + 1]
dec esi
jne 0x413f71
not eax
pop esi
pop ebp
ret
Function at 0x415010
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433001
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4447d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x64], esi
call fcn.00405a90
lea ecx, [esi + 0xc]
mov dword [ebp - 4], 0
call fcn.00405a90
lea ecx, [esi + 0x18]
call fcn.00401160
lea ecx, [esi + 0x30]
call fcn.00401160
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x60], esp
push 0x437f58
mov byte [ebp - 4], 3
call fcn.00401120
sub esp, 0x18
mov ecx, esp
push str.C__o__n__t__e__n__t___T__y__p__e__:_____a__p__p__l__i__c__a__t__i__o__n_____x___w__w__w___f__o__r__m___u__r__l__e__n__c__o__d__e__d__
mov byte [ebp - 4], 4
call fcn.00401120
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 3
call fcn.00410300
add esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x5c], esp
push 0x437f58
mov byte [ebp - 4], 5
call fcn.00401120
sub esp, 0x18
mov ecx, esp
push str.l__o__c__a__l__h__o__s__t__:__8__0__8__0__
mov byte [ebp - 4], 6
call fcn.00401120
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 5
call fcn.00410300
add esp, 0x34
push 0x4344b0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 7
call fcn.00401120
push 0x20
push 0
push 0xa
push 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x5c], esp
push 0x437f58
mov byte [ebp - 4], 8
call fcn.00401120
sub esp, 0x18
mov ecx, esp
push 0x43817c
mov byte [ebp - 4], 9
call fcn.00401120
lea eax, [ebp - 0x7c]
push eax
mov byte [ebp - 4], 8
call fcn.00410300
add esp, 0x34
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.00401c70
lea ecx, [ebp - 0x7c]
call fcn.00401190
mov dword [esi + 0x54], 0
lea ecx, [ebp - 0x58]
call fcn.00401190
lea ecx, [ebp - 0x40]
call fcn.00401190
lea ecx, [ebp - 0x28]
call fcn.00401190
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041bcf4
mov esp, ebp
pop ebp
ret
Function at 0x418070
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x1c], 0
jne 0x41809b
mov eax, dword [esi + 0x10]
cmp dword [eax + 0x10], 1
jle 0x41809b
lea eax, [esi + 8]
push eax
push 0
push esi
push 0x418d50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
pop esi
ret

Function at 0x418130
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4335b0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x4447d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x20
push 0
push 0xa
push 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0x438400
call fcn.00401120
sub esp, 0x18
mov ecx, esp
push str.N__E__j__
mov dword [ebp - 4], 0
call fcn.00401120
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.00410300
add esp, 0x34
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00401c70
lea ecx, [ebp - 0x2c]
call fcn.00401190
cmp dword [esi + 0x1c], 0
je 0x4181c9
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418260
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4335d8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4447d0]
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 edi, ecx
cmp dword [edi + 0x40], 0
je 0x4183b3
cmp byte [edi + 0x45], 0
je 0x4183b3
call fcn.00401c00
mov edx, dword [edi]
mov esi, eax
push esi
mov ecx, edi
call dword [edx + 0xc]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], esi
call fcn.00418c60
add esp, 8
test al, al
je 0x4182d1
xor al, al
jmp 0x4183b5
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00405760
mov dword [ebp - 4], 0
lea ebx, [edi + 0x48]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040e340
mov ecx, eax
call fcn.004068c0
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00401d50
add esi, eax
push esi
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040e340
mov ecx, eax
call fcn.004068c0
mov ecx, dword [edi + 0x40]
push eax
push ebx
call fcn.0041a060
sub eax, 0
je 0x418343
dec eax
je 0x418347
sub eax, 2
je 0x4183a5
lea ecx, [ebp - 0x28]
xor bl, bl
call fcn.00401190
mov al, bl
jmp 0x4183b5
mov byte [edi + 0x45], 0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040e340
mov ecx, eax
call fcn.004068c0
mov esi, dword [ebp - 0x2c]
sub esi, eax
je 0x418387
push dword [edi + 0x50]
lea eax, [ebp - 0x3c]
push esi
push 1
push eax
lea ecx, [ebp - 0x28]
call fcn.0040e340
mov ecx, eax
call fcn.004068c0
push eax
call fcn.0041daab
add esp, 0x10
cmp esi, eax
jne 0x418335
cmp byte [edi + 0x45], 0
je 0x4183a5
test esi, esi
jne 0x4182e7
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00401590
jmp 0x4182e7
lea ecx, [ebp - 0x28]
mov bl, 1
call fcn.00401190
mov al, bl
jmp 0x4183b5
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.0041bcf4
mov esp, ebp
pop ebp
ret
Function at 0x42c74e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00423292
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x42c786
xor eax, eax
jmp 0x42c7b2
cmp esi, dword [ebp - 4]
je 0x42c7af
cmp dword [ebp + 0xc], 0
je 0x42c7af
push dword [edi + 0x9c]
call fcn.0042c35c
push dword [edi + 0x9c]
mov esi, eax
call fcn.00421f82
pop ecx
pop ecx
cmp esi, eax
je 0x42c782
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x42d0d5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4447d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00421b25
mov dword [ebp - 0x14], eax
cmp dword [0x446ea8], edi
jne 0x42d1c6
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x42d153
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x42d2a6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x42d2a6
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42d2a6
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x446ea8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x446eac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x446eb0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x446eb8], eax
test eax, eax
je 0x42d1c3
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x446eb4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x42d1eb
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42d1de
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x42d200
push 4
pop eax
jmp 0x42d2a8
cmp dword [ebp - 0x14], edi
je 0x42d200
push dword [0x446ea8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x42d1e5
mov eax, dword [0x446eb4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x42d25e
cmp dword [0x446eb8], esi
je 0x42d25e
push eax
call ebx
push dword [0x446eb8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x42d25e
test eax, eax
je 0x42d25e
call ecx
test eax, eax
je 0x42d253
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x42d253
test byte [ebp - 8], 1
jne 0x42d25e
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x42d28e
mov eax, dword [0x446eac]
cmp eax, esi
je 0x42d28b
push eax
call ebx
test eax, eax
je 0x42d28b
call eax
mov edi, eax
test edi, edi
je 0x42d28b
mov eax, dword [0x446eb0]
cmp eax, esi
je 0x42d28b
push eax
call ebx
test eax, eax
je 0x42d28b
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x446ea8]
call ebx
test eax, eax
je 0x42d2a6
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x42d2a8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bcf4
leave
ret
Function at 0x404f20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x60ab00], ecx
inc eax
cmp eax, 0x100
jb 0x404f22
cmp eax, 0x800
jae 0x404ff3
nop word [eax + eax]
mov edx, dword [eax*4 + 0x60a700]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x60ab00]
mov dword [eax*4 + 0x60ab00], edx
inc eax
cmp eax, 0x800
jb 0x404fd0
mov dword [0x5f9100], 0x405020
call fcn.004091a0
test eax, eax
jne 0x405010
mov dword [0x5f9100], 0x405020
ret

Function at 0x405d00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
jne 0x405d14
pop edi
xor eax, eax
pop esi
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, 0x400000
mov dword [edi], 0
push 0
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, ecx
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x405d69
test ecx, ecx
je 0x405d62
mov ecx, 0x400000
test esi, esi
jne 0x405d23
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop ebx
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]