joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006eb3
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1002000
call fcn.01007070
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1006eee
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1006eee
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1006f06
cmp eax, 0x20b
je 0x1006ef3
mov dword [ebp - 0x1c], edi
jmp 0x1006f1a
cmp dword [ecx + 0x84], 0xe
jbe 0x1006eee
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1006f14
cmp dword [ecx + 0x74], 0xe
jbe 0x1006eee
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100a3a0], 0xffffffff
or dword [0x100a3a4], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100a374]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100a370]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100a3a8], eax
call fcn.010070d8
cmp dword [0x1009010], edi
jne 0x1006f75
push fcn.010070d8
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010070c6
push 0x1001280
push 0x100127c
call sub.msvcrt.dll__initterm
mov eax, dword [0x100a36c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x100a368]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x1001278
push 0x1001274
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01003b09
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x1006fec
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1007021
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010070a9
ret

Function at 0x1007167
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x1002050
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10071bf
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x100208c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10071b2
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10071c1
xor eax, eax
pop esi
leave
ret 4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40115f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esp
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [esp + 0x2c], 1
je 0x401178
movzx esi, word [esp + 0x30]
xor eax, eax
mov edi, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x402660], eax
mov dword [ebp - 0x4c], 0x30
call fcn.0040114f
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], 0x401050
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], str.Lyrik
mov dword [ebp - 0x20], eax
call fcn.00401142
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
test eax, eax
je 0x40124c
mov eax, 0x80000000
push edi
push dword [ebp - 0x38]
push edi
push edi
push eax
push eax
push eax
push eax
push 0x80
push str.Dindom
push str.Lyrik
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push eax
mov dword [0x402668], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x402668]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x40124c
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x401230
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401b20
Capabilities:
Copy file
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x417310
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x422890]
push ebx
mov ebx, ecx
push ebp
mov ecx, dword [eax]
push esi
push edi
push ecx
lea ecx, [esp + 0x14]
call fcn.00413aa7
mov edx, dword [0x41d408]
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov byte [esp + 0x44], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401b91
push str.Cannot_open_installer_file_
jmp 0x401bd9
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push pe_overlay
push esi
lea ebp, [eax - 0x28000]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp + 1]
push ecx
call fcn.00412ff6
add esp, 4
lea edx, [esp + 0x18]
mov edi, eax
push 0
push edx
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp ebp, dword [esp + 0x18]
je 0x401c18
push str.Installer_file_corrupted_
lea ecx, [ebx + 0xa4]
call fcn.00413b76
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call fcn.00413a39
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00413a39
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebx + 0x98]
mov ecx, ebx
push esi
push ebp
push edi
call fcn.00401cc0
push str..SCR
lea eax, [esp + 0x20]
push esi
push eax
call fcn.00413bdb
mov eax, dword [eax]
mov esi, dword [esi]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x1c]
call fcn.00413a39
push edi
call fcn.0041301f
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call fcn.00413a39
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00413a39
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x401cc0
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x417328
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x41d408]
push ebp
push esi
push edi
mov dword [esp + 0xc], eax
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0
call fcn.00413cc3
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call fcn.00413d12
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0xc]
push 0x104
mov ecx, esi
call fcn.00413cc3
push eax
push 0
push 0x41d1a0
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00413d12
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00413a39
mov eax, dword [esi]
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
je 0x401dc0
mov ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push 0
push ecx
push ebp
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401db9
cmp dword [esp + 0x10], ebp
jne 0x401db9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0xffffffffffffffff
push 0
push 0x66
call fcn.00415308
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
Function at 0x402080
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4173ed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
mov eax, dword [0x422890]
push ebx
push esi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x14]
call fcn.00413aa7
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 0
mov eax, dword [edx - 8]
add eax, 0xfffffffc
push eax
lea eax, [esp + 0x10]
push eax
call fcn.0040ee3e
push str..scr
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x234], 1
call fcn.00413bdb
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x22c], 2
call fcn.00413b26
lea ecx, [esp + 0x14]
mov byte [esp + 0x228], 1
call fcn.00413a39
lea ecx, [esp + 0xc]
mov byte [esp + 0x228], 0
call fcn.00413a39
lea edx, [esp + 0x18]
push 0x208
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [esp + 0x10]
push 0x5c
lea ecx, [esp + 0x14]
mov esi, dword [eax - 8]
call fcn.0040eeb6
sub esi, eax
lea ecx, [esp + 8]
dec esi
push esi
push ecx
lea ecx, [esp + 0x18]
call fcn.0040edc2
lea edx, [esp + 0xc]
push 4
push edx
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], 3
call fcn.0040edc2
mov eax, dword [eax]
push str..exe
push eax
call fcn.00403009
add esp, 8
lea ecx, [esp + 0xc]
test eax, eax
sete bl
call fcn.00413a39
test bl, bl
je 0x4021c8
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
mov eax, dword [eax - 8]
add eax, 0xfffffffc
push eax
push ecx
lea ecx, [esp + 0x10]
call fcn.0040ee3e
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x22c], 4
call fcn.00413b26
lea ecx, [esp + 0xc]
mov byte [esp + 0x228], 3
call fcn.00413a39
lea edx, [esp + 8]
lea eax, [esp + 0xc]
push edx
push 0x41d154
push eax
call fcn.00413c4f
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x22c], 5
call fcn.00413b26
lea ecx, [esp + 0xc]
mov byte [esp + 0x228], 3
call fcn.00413a39
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00413c4f
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x22c], 6
call fcn.00413b26
lea ecx, [esp + 0xc]
mov byte [esp + 0x228], 3
call fcn.00413a39
mov ecx, dword [esp + 8]
push 0
push 0x80
push 3
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
or esi, 0xffffffff
cmp eax, esi
jne 0x402291
lea ecx, [esp + 8]
mov byte [esp + 0x228], 0
call fcn.00413a39
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], esi
call fcn.00413a39
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
add esp, 0x224
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 8]
mov byte [esp + 0x228], 0
call fcn.00413a39
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], esi
call fcn.00413a39
mov ecx, dword [esp + 0x220]
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret
Function at 0x4067a1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41dc30
cmp edx, dword [eax]
je 0x4067c3
add eax, 8
inc ecx
cmp eax, 0x41dcc0
jl 0x4067b4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41dc30]
jne 0x4068f1
mov eax, dword [0x4228c4]
cmp eax, 1
je 0x4068cb
test eax, eax
jne 0x4067f4
cmp dword [0x41d740], 1
je 0x4068cb
cmp edx, 0xfc
je 0x4068f1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40682b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407dd0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004041d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40686e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004041d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x419da4
push edi
call fcn.00409460
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407dd0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407de0
lea eax, [ebp - 0xa0]
push 0x419d84
push eax
call fcn.00407de0
push dword [esi + 0x41dc34]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407de0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004093d6
add esp, 0x2c
pop edi
jmp 0x4068f1
lea eax, [ebp + 8]
lea esi, [esi + 0x41dc34]
push 0
push eax
push dword [esi]
call fcn.004041d0
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 0x40e720
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00404510
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x40e7eb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x40e7eb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x40e79e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x40e7a9
or bh, 8
and edi, 0x8000000
je 0x40e7c4
mov eax, dword [0x42401c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x40e7eb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ebc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40ebeb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40ec0f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x40ec2a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41223b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41227d
call fcn.0041623f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41227d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x412274
xor eax, eax
jmp 0x412285
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041228b
pop edi
pop esi
pop ebx
ret 4

Function at 0x416867
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x416895
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4168b3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004167cd
jmp 0x4168b3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4168b3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004167cd
test edi, edi
mov eax, edi
jne 0x41689d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4025f0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 8]
mov dword [ecx], 0
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 0x18]
mov byte [ecx + eax], 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4026c1
mov eax, dword [ebp - 4]
movsx ecx, word [eax + 8]
cmp ecx, 2
jne 0x4026a1
mov edx, dword [ebp - 4]
movsx eax, word [edx + 0xa]
cmp eax, 4
jne 0x4026a1
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0xc], edx
jmp 0x40265e
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp dword [ecx], 0
je 0x4026a1
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
movzx edx, word [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004024d0
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x402694
mov eax, 8
jmp 0x402706
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
add edx, 0x1c
mov dword [ebp - 8], edx
jmp 0x402655
push 0x400
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
push 0x401
mov edx, dword [ebp + 0x18]
push edx
call fcn.00412350
add esp, 0x10
xor eax, eax
jmp 0x402706
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
sub eax, 0x2af9
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
ja case.default.0x4026de
mov ecx, dword [ebp - 0x10]
jmp dword [ecx*4 + 0x40270c]
mov eax, 0x2af9
jmp 0x402706
mov eax, 0x2afa
jmp 0x402706
mov eax, 0x2afb
jmp 0x402706
mov eax, 0x2af9
jmp 0x402706
mov eax, 0x2af9
mov esp, ebp
pop ebp
ret 0x18

Function at 0x404fc0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00404be0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x404ff2
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x43517c]
call dword [ebp - 8]
jmp 0x404ffc
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret