joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ee60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov ecx, 0x4bb1b0
call fcn.0048decd
mov edi, dword [0x4b3748]
cmp byte [edi + 0x5a21], 0
lea eax, [edi + 0x20]
jne 0x42efb6
mov ecx, dword [eax]
push ebx
test ecx, ecx
je 0x42efae
push esi
push 0x494620
push ecx
call fcn.00417b50
mov esi, eax
add esp, 8
test esi, esi
je 0x42efaa
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call ebx
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x42efa0
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x42efa0
push esi
call ebx
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x42efa0
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x42efa0
mov eax, dword [0x4b3748]
test eax, eax
je 0x42ef0e
inc dword [eax + 0xb4]
push dword [0x4b3750]
push ebx
call dword [0x4af008]
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x42efa0
push esi
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, ebx
je 0x42ef65
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x4b3748]
add esp, 4
test eax, eax
je 0x42ef50
dec dword [eax + 0xb4]
push dword [0x4b3750]
mov esi, dword [ebp - 4]
push esi
call dword [0x4af00c]
add esp, 8
jmp 0x42efaa
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov esi, dword [ebp - 4]
add esp, 4
test ebx, ebx
je 0x42ef7f
push ebx
push esi
call fcn.0041b920
add esp, 8
mov eax, dword [0x4b3748]
test eax, eax
je 0x42ef8e
dec dword [eax + 0xb4]
push dword [0x4b3750]
push esi
call dword [0x4af00c]
add esp, 8
jmp 0x42efaa
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
lea eax, [edi + 0x20]
pop esi
mov byte [edi + 0x5a21], 1
pop ebx
movss xmm0, dword [edi + 0x5a24]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x42f007
subss xmm0, dword [edi + 0x18]
comiss xmm1, xmm0
movss dword [edi + 0x5a24], xmm0
jb 0x42f007
mov eax, dword [eax]
test eax, eax
je 0x42eff6
push eax
call fcn.004250a0
add esp, 4
mov dword [edi + 0x5a24], 0
pop edi
mov esp, ebp
pop ebp
ret
mov byte [edi + 0x9c], 1
mov dword [edi + 0x5a24], 0
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4505e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490d50
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4b36c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, 0x4bb1fa
call fcn.0048decd
xor ebx, ebx
lea ecx, [edi + 0x5c]
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x54], ebx
jle 0x450659
xor esi, esi
mov eax, dword [ecx]
mov ecx, dword [esi + eax]
test ecx, ecx
je 0x45064b
cmp byte [esi + eax + 8], 0
je 0x45064b
push ecx
call fcn.0041c490
mov eax, dword [edi + 0x5c]
lea ecx, [edi + 0x5c]
add esp, 4
mov dword [esi + eax], 0
jmp 0x45064e
lea ecx, [edi + 0x5c]
inc ebx
add esi, 0x78
cmp ebx, dword [edi + 0x54]
jl 0x450623
jmp 0x45065c
mov dword [ebp - 0x10], ecx
xor edx, edx
lea ebx, [edi + 0x3c]
cmp dword [ebx], edx
jle 0x4506a4
mov eax, dword [edi + 0x44]
mov esi, dword [eax + edx*4]
mov eax, dword [ecx]
mov dword [ebp - 0x14], eax
cmp dword [esi + 0x34], eax
jb 0x45069c
mov ecx, dword [edi + 0x54]
shl ecx, 4
sub ecx, dword [edi + 0x54]
lea eax, [eax + ecx*8]
cmp dword [esi + 0x34], eax
jae 0x450699
mov dword [esi + 0x34], 0
xor ecx, ecx
mov eax, dword [edi + 0x44]
mov eax, dword [eax + edx*4]
mov word [eax + 0x38], cx
mov ecx, dword [ebp - 0x10]
inc edx
cmp edx, dword [ebx]
jl 0x450665
lea ebx, [edi + 0x3c]
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x4506c9
push eax
mov dword [edi + 0x58], 0
mov dword [edi + 0x54], 0
call fcn.0041c490
add esp, 4
mov dword [edi + 0x5c], 0
mov eax, dword [edi + 0x50]
mov esi, ebx
test eax, eax
je 0x4506f3
push eax
mov dword [edi + 0x4c], 0
mov dword [edi + 0x48], 0
call fcn.0041c490
add esp, 4
mov dword [edi + 0x50], 0
lea esi, [edi + 0x3c]
mov eax, dword [edi + 0x1c]
mov dword [edi + 0x46c], 0xffffffff
mov dword [edi + 0x468], 0xffffffff
test eax, eax
je 0x450719
push eax
call fcn.0041c490
add esp, 4
mov ebx, esi
mov eax, dword [edi + 0x20]
test eax, eax
je 0x450729
push eax
call fcn.0041c490
add esp, 4
xor ecx, ecx
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov byte [edi + 0x19], 0
mov dword [ebp - 0x10], ecx
cmp dword [ebx], ecx
jle 0x4507b3
mov eax, dword [ebx + 8]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x4507ab
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00450af0
mov eax, dword [esi + 0x28]
mov byte [ebp - 4], 1
test eax, eax
je 0x450770
push eax
call fcn.0041c490
add esp, 4
mov eax, dword [esi + 0x1c]
mov byte [ebp - 4], 2
test eax, eax
je 0x450784
push eax
call fcn.0041c490
add esp, 4
mov eax, dword [esi + 8]
mov byte [ebp - 4], 3
test eax, eax
je 0x450798
push eax
call fcn.0041c490
add esp, 4
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.0041c490
mov ecx, dword [ebp - 0x10]
add esp, 4
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, dword [ebx]
jl 0x450744
mov eax, dword [ebx + 8]
test eax, eax
je 0x4507d7
push eax
mov dword [ebx + 4], 0
mov dword [ebx], 0
call fcn.0041c490
add esp, 4
mov dword [ebx + 8], 0
mov byte [edi + 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459300
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x4bb1fa
call fcn.0048decd
mov eax, dword [esi + 8]
test eax, eax
je 0x459331
push eax
mov dword [esi + 4], 0
mov dword [esi], 0
call fcn.0041c490
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x459356
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
call fcn.0041c490
add esp, 4
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x45937b
push eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
call fcn.0041c490
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4593bc
push eax
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
call fcn.0041c490
add esp, 4
mov dword [esi + 0x44], 0
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4593e1
push eax
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
call fcn.0041c490
add esp, 4
mov dword [esi + 0x50], 0
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x459406
push eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
call fcn.0041c490
add esp, 4
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.00450900
Function at 0x45a210
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov ecx, 0x4bb1fa
call fcn.0048decd
mov edi, dword [ebp + 0x10]
mov eax, 0x5e6ea9af
mov esi, dword [ebp + 8]
mul edi
movzx ecx, si
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, edi
shr esi, 0x10
mov dword [ebp + 8], esi
sub edx, eax
mov dword [ebp - 4], edx
test edi, edi
je 0x45a365
mov edi, dword [ebp + 0xc]
push ebx
xor ebx, ebx
cmp edx, 7
jbe 0x45a2b6
mov eax, 7
sub eax, edi
mov dword [ebp + 8], eax
movzx eax, byte [edi]
add ebx, 8
add ecx, eax
movzx eax, byte [edi + 1]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 2]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 3]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 4]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 5]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 6]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 7]
add esi, ecx
add edi, 8
add ecx, eax
mov eax, dword [ebp + 8]
add eax, edi
add esi, ecx
cmp eax, edx
jb 0x45a265
mov dword [ebp + 8], esi
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [ebp - 0xc], 0
cmp ebx, eax
jae 0x45a329
sub eax, ebx
cmp eax, 2
jb 0x45a315
mov edx, dword [ebp - 4]
sub edx, ebx
sub edx, 2
shr edx, 1
inc edx
lea eax, [ebx + edx*2]
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov esi, ebx
movzx eax, byte [edi]
add ecx, eax
movzx eax, byte [edi + 1]
add ebx, ecx
add edi, 2
add ecx, eax
add esi, ecx
sub edx, 1
jne 0x45a2e3
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jae 0x45a321
movzx eax, byte [edi]
mov edx, dword [ebp - 8]
add ecx, eax
add esi, ecx
inc edi
jmp 0x45a324
movzx eax, byte [edi]
mov ebx, edx
add ecx, eax
add esi, ecx
inc edi
jmp 0x45a324
mov edx, dword [ebp - 8]
lea eax, [edx + ebx]
add esi, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul esi
shr edx, 0xf
imul eax, edx, 0xffff000f
mov edx, dword [ebp - 4]
add esi, eax
sub dword [ebp + 0x10], edx
mov edx, 0x15b0
mov dword [ebp + 8], esi
mov dword [ebp - 4], edx
jne 0x45a254
pop ebx
shl esi, 0x10
pop edi
lea eax, [ecx + esi]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48c110
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ecx, 0x4bb2f0
call fcn.0048decd
lea eax, [ebp - 4]
push eax
call fcn.0048c260
add esp, 4
test al, al
je 0x48c252
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x48c159
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x48c252
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push str.CreateToolhelp32Snapshot
push ebx
call esi
mov edi, dword [ebp + 8]
push str.Process32First
push ebx
mov dword [edi], eax
call esi
push str.Process32Next
push ebx
mov dword [edi + 4], eax
call esi
push str.Module32First
push ebx
mov dword [edi + 8], eax
call esi
push str.Module32Next
push ebx
mov dword [edi + 0xc], eax
call esi
push str.Thread32First
push ebx
mov dword [edi + 0x10], eax
call esi
push str.Thread32Next
push ebx
mov dword [edi + 0x14], eax
call esi
push 0x4ab59c
push ebx
mov dword [edi + 0x18], eax
call esi
push str.OpenThread
push ebx
mov dword [edi + 0x1c], eax
call esi
push str.VirtualAllocEx
push ebx
mov dword [edi + 0x20], eax
call esi
push str.VirtualFreeEx
push ebx
mov dword [edi + 0x24], eax
call esi
cmp byte [ebp - 4], 0
mov dword [edi + 0x28], eax
je 0x48c1eb
mov dword [edi + 0x20], 0x48c9d0
jmp 0x48c1f1
cmp byte [ebp - 3], 0
je 0x48c1ff
mov dword [edi + 0x28], 0x48cb60
mov dword [edi + 0x24], 0x48cb10
cmp dword [edi], 0
je 0x48c249
cmp dword [edi + 4], 0
je 0x48c249
cmp dword [edi + 8], 0
je 0x48c249
cmp dword [edi + 0xc], 0
je 0x48c249
cmp dword [edi + 0x10], 0
je 0x48c249
cmp dword [edi + 0x14], 0
je 0x48c249
cmp dword [edi + 0x18], 0
je 0x48c249
cmp dword [edi + 0x1c], 0
je 0x48c249
cmp dword [edi + 0x20], 0
je 0x48c249
cmp dword [edi + 0x24], 0
je 0x48c249
cmp dword [edi + 0x28], 0
je 0x48c249
pop edi
pop esi
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
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48c260
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x4b36c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov ecx, 0x4bb2f0
call fcn.0048decd
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x48c2ad
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048deff
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x94]
cmp eax, 1
jne 0x48c2d3
cmp edx, 4
jne 0x48c2d3
cmp ecx, 0xa
ja 0x48c2d3
mov byte [esi], 1
jmp 0x48c2e0
mov byte [esi], 0
cmp eax, 1
jne 0x48c2e9
cmp edx, 4
jne 0x48c2e9
cmp ecx, 0x5a
jb 0x48c2e9
mov cl, 1
jmp 0x48c2eb
xor cl, cl
cmp eax, 2
mov byte [esi + 1], cl
mov ecx, dword [ebp - 4]
sete al
xor ecx, ebp
mov byte [esi + 2], al
mov al, 1
pop esi
call fcn.0048deff
mov esp, ebp
pop ebp
ret
Function at 0x48d9d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4b36c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x4bb4a5
call fcn.0048decd
lea eax, [ebp - 0x14]
mov word [ebp - 0x14], 0x293a
push eax
push 0x4ba2bc
mov byte [ebp - 0x12], 0
call fcn.0044bfb0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x756b6173
push eax
push 0x4ba29c
mov dword [ebp - 0xc], 0x642e6172
mov word [ebp - 8], 0x6c6c
mov byte [ebp - 6], 0
call fcn.0044bfb0
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
call fcn.0048deff
mov esp, ebp
pop ebp
ret

Function at 0x48db80
Capabilities:
Contain obfuscated stackstrings
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x4b36c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ecx, 0x4bb4a5
call fcn.0048decd
push 0x104
push 0x4ba198
mov bl, 1
push 0
mov bh, bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push 0x4ba198
call sub.VCRUNTIME140.dll_strrchr
mov ecx, 1
add esp, 8
sub ecx, 0x4ba198
add eax, ecx
cmp eax, 0x104
jae 0x48dd1d
push 0x4ba29c
push 0x104
push 0x4ba198
mov byte [eax + 0x4ba198], 0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea eax, [ebp - 0x15c]
push eax
push 0x4ba198
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x48dc5a
mov ecx, 0x59
xor edx, edx
nop dword [eax + eax]
mov al, byte [edx + 0x4ab650]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x1c], al
and ecx, 0x800000ff
jns 0x48dc3d
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x16
jl 0x48dc20
lea eax, [ebp - 0x1c]
mov byte [ebp - 6], 0
push eax
push 0x4ba2bc
call fcn.0044bfb0
add esp, 8
xor bl, bl
push 0x4ba2dc
push str.hl.exe
call fcn.0048c310
add esp, 8
test al, al
jne 0x48dcba
test bl, bl
je 0x48dcba
mov ecx, 0x82
xor edx, edx
nop dword [eax + eax]
mov al, byte [edx + 0x4ab670]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x18], al
and ecx, 0x800000ff
jns 0x48dc9d
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x12
jl 0x48dc80
lea eax, [ebp - 0x18]
mov byte [ebp - 6], 0
push eax
push 0x4ba2bc
call fcn.0044bfb0
add esp, 8
xor bh, bh
push 0x4ba198
push str.hl.exe
call fcn.0048c4a0
add esp, 8
cmp al, 1
jne 0x48dd0e
test bl, bl
je 0x48dd0e
test bh, bh
je 0x48dd0e
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x656a6e49
push eax
push 0x4ba2bc
mov dword [ebp - 0xc], 0x64657463
mov word [ebp - 8], 0x21
call fcn.0044bfb0
add esp, 8
cmp byte [0x4ba191], 0
je 0x48dd0e
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0048deff
mov esp, ebp
pop ebp
ret
call fcn.0048ed86
int3

Function at 0x48f64b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x48f68a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48f68a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48f68a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x48f68a
cmp dword [ecx + 0x74], 0xe
jbe 0x48f68a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x403374
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.00404e30
test esi, esi
jne 0x4033aa
push 0x105
lea eax, [esp + 4]
push eax
push 0
call fcn.0040133c
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404f20
jmp 0x4033c8
call fcn.0040132c
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403218
mov edi, eax
test esi, esi
je 0x4033c8
cmp dword [ebx], 0
je 0x4033c8
dec esi
jmp 0x4033b1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403ce8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x5c8024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403d80
push 0x80000002
call fcn.00401394
test eax, eax
jne 0x403d60
xor eax, eax
push ebp
push 0x403d59
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 0x403d9c
mov eax, dword [ebp - 4]
push eax
call fcn.0040139c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403d60
mov eax, dword [ebp - 4]
push eax
call fcn.0040138c
ret
movzx eax, word [0x5c8024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x5c8024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404bf8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5d004c], 0
je 0x404c59
cmp word [0x5d0220], 0xd7b2
jne 0x404c21
cmp dword [0x5d0228], 0
jbe 0x404c21
mov eax, 0x5d021c
call dword [0x5d0238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call fcn.004012c4
push eax
call fcn.004012e4
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404c80
push 0xfffffffffffffff5
call fcn.004012c4
push eax
call fcn.004012e4
pop edx
ret
cmp byte [0x5c8030], 0
jne 0x404c75
push 0
push 0x5c8760
push str.Runtime_error_____at_00000000
push 0
call fcn.0040130c
pop edx
ret
Function at 0x404c84
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x5d27c8
mov edi, 0x5d0048
cmp byte [ebx + 0x28], 0
jne 0x404cac
cmp dword [edi], 0
je 0x404cac
mov eax, dword [edi]
mov esi, eax
xor eax, eax
mov dword [edi], eax
call esi
cmp dword [edi], 0
jne 0x404c9d
cmp dword [0x5c8004], 0
je 0x404cc6
call fcn.00404b64
call fcn.00404bf8
xor eax, eax
mov dword [0x5c8004], eax
cmp byte [ebx + 0x28], 2
jne 0x404cda
cmp dword [section..data], 0
jne 0x404cda
xor eax, eax
mov dword [ebx + 0xc], eax
call fcn.004049f0
cmp byte [ebx + 0x28], 1
jbe 0x404cee
cmp dword [section..data], 0
je 0x404d11
mov edi, dword [ebx + 0x10]
test edi, edi
je 0x404d11
mov eax, edi
call fcn.00406ca8
mov ebp, dword [ebx + 0x10]
mov esi, dword [ebp + 0x10]
cmp esi, dword [ebp + 4]
je 0x404d11
test esi, esi
je 0x404d11
push esi
call fcn.00401324
call fcn.004049c8
cmp byte [ebx + 0x28], 1
jne 0x404d1f
call dword [ebx + 0x24]
cmp byte [ebx + 0x28], 0
je 0x404d2a
call fcn.00404bc8
cmp dword [ebx], 0
jne 0x404d49
cmp dword [0x5d0028], 0
je 0x404d3e
call dword [0x5d0028]
mov eax, dword [section..data]
push eax
call fcn.00401304
mov eax, dword [ebx]
mov esi, eax
mov edi, ebx
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
jmp 0x404cc6

Function at 0x404dd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x5c8034], 0
je 0x404df6
mov edx, esi
mov eax, ebx
call dword [0x5c8034]
jmp 0x404e05
mov eax, 8
call fcn.00402f28
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x5d004d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404d98
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call fcn.004012fc
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x406938
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 fcn.0040133c
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406b68
push 0x80000001
call fcn.00401394
test eax, eax
je 0x4069bb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406b68
push 0x80000002
call fcn.00401394
test eax, eax
je 0x4069bb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406b84
push 0x80000001
call fcn.00401394
test eax, eax
jne 0x406a44
xor eax, eax
push ebp
push 0x406a3d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406774
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 fcn.0040139c
test eax, eax
je 0x406a22
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406ba4
mov eax, dword [ebp - 8]
push eax
call fcn.0040139c
test eax, eax
je 0x406a22
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 0x406a44
mov eax, dword [ebp - 8]
push eax
call fcn.0040138c
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call fcn.00401374
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call fcn.0040135c
push eax
call fcn.00401334
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406b5e
cmp byte [ebp - 0xd], 0
jne 0x406a8b
cmp byte [ebp - 0x12], 0
je 0x406b5e
lea eax, [ebp - 0x11d]
push eax
call fcn.0040137c
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406aa4
dec ebx
cmp byte [ebx], 0x2e
je 0x406ab3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406aa3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406b5e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406af0
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call fcn.00401374
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call fcn.00401364
mov esi, eax
test esi, esi
jne 0x406b5e
cmp byte [ebp - 0xd], 0
je 0x406b5e
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 fcn.00401374
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call fcn.00401364
mov esi, eax
test esi, esi
jne 0x406b5e
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 fcn.00401374
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call fcn.00401364
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409bf4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x409c46
test eax, edx
je 0x409c49
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409c09
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x409c2f
add ecx, 4
js 0x409c1f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409c2c
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x409c55
test edx, edx
jne 0x409bfc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004052dc
push eax
call fcn.004077f4
cmp eax, 0xffffffff
je 0x40a9c2
test al, 0x10
sete al
pop esi
pop ebx
ret
call fcn.0040780c
mov ebx, eax
cmp ebx, 2
je 0x40a9e3
cmp ebx, 3
je 0x40a9e3
cmp ebx, 0x7b
je 0x40a9e3
mov eax, esi
call fcn.0040a964
test al, al
jne 0x40a9e7
xor eax, eax
jmp 0x40a9e9
mov al, 1
pop esi
pop ebx
ret