joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e8b6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x41e8da
cmp dword [edi + 0x74], 0
jne 0x41e8da
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0042717f
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0041e877
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x424def
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x424e36
call fcn.0042717f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x424e36
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x424e52
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004248ef
mov esi, eax
test edi, edi
je 0x424e50
test ebx, ebx
je 0x424e50
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x425231
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x52b399
call fcn.0050ef9f
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x425256
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4252a8
call fcn.0041a2c9
push eax
lea ecx, [ebp - 0x10]
call fcn.00406910
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0050ece1
push eax
call fcn.004057a0
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00406a80
mov eax, esi
call fcn.0050f077
ret 8
Function at 0x42a043
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x587730]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x42a078
xor eax, eax
jmp 0x42a0cb
lea eax, [ebp - 0x210]
push eax
call fcn.0050cf1a
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x42a0a9
push 0x536ec8
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00510c4e
add esp, 0xc
test eax, eax
jne 0x42a074
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00510c4e
add esp, 0xc
test eax, eax
jne 0x42a074
lea eax, [ebp - 0x210]
push eax
call fcn.00417409
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0050c838
leave
ret

Function at 0x432182
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00431e26
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4321cc
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004065b0
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00406600
jmp 0x4321d7
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0042bb4e
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4321dd
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.00424efb
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x43221a
call fcn.00431e26
mov dword [esi + 0xc], 1
jmp 0x43221f
call fcn.00431e26
cmp dword [esi], 0
je 0x432268
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x432240
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004065b0
jmp 0x432252
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00406bf0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00406600
jmp 0x43228c
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x43228c
push dword [esi]
push dword [ebp + 8]
call fcn.0042bb4e
pop esi
pop ebp
ret 0xc
Function at 0x498582
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x49859c
call fcn.0042717f
mov esi, dword [eax + 0xc]
push dword [0x58cdec]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4985ba
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4985b2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4985e7
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4985b4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004984b0
mov esi, eax
jmp 0x4985d9

Function at 0x4e957e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00423382
call fcn.0041aea5
cmp eax, esi
pop esi
jne 0x4e959a
mov ecx, 0x58ad58
jmp fcn.0042ad2c
ret

Function at 0x4ecf1e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4ecf36
mov edi, dword [esi + 0xc]
jmp 0x4ecf76
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4ecf4f
call fcn.004255fb
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4ecf64
call fcn.004255fb
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4ecf76
call fcn.004255fb
call fcn.0042717f
cmp dword [eax + 0x3c], 0
je 0x4ecf8b
push edi
mov ecx, ebx
call fcn.004ebd48
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004ece38
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4ecfa9
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4ecfb5
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x50c838
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x587730]
jne 0x50c842
repz ret
jmp fcn.005158fc
Function at 0x50c8ca
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x50c8f1
call fcn.0050f92f
mov dword [eax], esi
call fcn.0050f91c
push 0x16
pop esi
mov dword [eax], esi
call fcn.00515c56
mov eax, esi
jmp 0x50c946
test dword [ebp + 0xc], 0xfffffff9
jne 0x50c8d7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x50c91e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0050f942
pop ecx
call fcn.0050f91c
mov eax, dword [eax]
jmp 0x50c946
test al, 0x10
jne 0x50c944
test al, 1
je 0x50c944
test byte [ebp + 0xc], 2
je 0x50c944
call fcn.0050f92f
mov dword [eax], 5
call fcn.0050f91c
mov dword [eax], 0xd
jmp 0x50c915
xor eax, eax
pop esi
pop ebp
ret

Function at 0x51fc48
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x587730]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0051456b
and dword [ebp - 0x14], 0
cmp dword [0x58f460], 0
mov dword [ebp - 0x18], eax
jne 0x51fcfb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x51fda3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x567198
push ebx
call edi
test eax, eax
je 0x51fda3
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x567188
push ebx
mov dword [0x58f460], eax
call edi
push eax
call esi
push 0x567174
push ebx
mov dword [0x58f464], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x58f468], eax
call edi
push eax
call esi
mov dword [0x58f470], eax
test eax, eax
je 0x51fcfb
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x58f46c], eax
mov eax, dword [0x58f46c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x51fd54
cmp dword [0x58f470], ecx
je 0x51fd54
push eax
call esi
push dword [0x58f470]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x51fd54
test ebx, ebx
je 0x51fd54
call edi
test eax, eax
je 0x51fd4b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x51fd4b
test byte [ebp - 8], 1
jne 0x51fd54
or dword [ebp + 0x10], 0x200000
jmp 0x51fd87
mov eax, dword [0x58f464]
cmp eax, dword [ebp - 0x18]
je 0x51fd87
push eax
call esi
test eax, eax
je 0x51fd87
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x51fd87
mov eax, dword [0x58f468]
cmp eax, dword [ebp - 0x18]
je 0x51fd87
push eax
call esi
test eax, eax
je 0x51fd87
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x58f460]
call esi
test eax, eax
je 0x51fda3
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x51fda5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050c838
leave
ret
Function at 0x401340
Capabilities:
Contain obfuscated stackstrings
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x40b308
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1ac
push esi
mov esi, ecx
push edi
mov dword [esp + 0x20], esi
lea ecx, [esi + 4]
call fcn.00401000
lea ecx, [esi + 0x14]
mov dword [esp + 0x1bc], 0
call fcn.00401000
lea ecx, [esi + 0x24]
mov byte [esp + 0x1bc], 1
call fcn.00401000
lea ecx, [esi + 0x34]
mov byte [esp + 0x1bc], 2
call fcn.00401000
lea eax, [esp + 0x24]
mov byte [esp + 0x1bc], 3
push eax
push 0x202
mov dword [esi], 0x40c1d0
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov cl, 0x68
mov byte [esp + 0x1d], 0x78
mov byte [esp + 0x1c], cl
mov di, word [esp + 0x1c]
lea edx, [esi + 0x54]
mov dword [esi + 0x4c], eax
mov al, 0x20
mov byte [esp + 0xc], cl
mov word [edx], di
mov cl, 0x74
mov byte [esp + 0x10], cl
mov byte [esp + 0x18], cl
mov byte [edx + 2], al
mov al, 0x6f
mov byte [esp + 0xf], al
mov byte [esp + 0x11], al
mov byte [esp + 0x13], al
mov byte [esp + 0x16], al
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 8], 0x45
mov byte [esp + 9], 0x77
mov byte [esp + 0xa], 0x69
mov byte [esp + 0xb], 0x6e
mov byte [esp + 0xd], 0x50
mov byte [esp + 0xe], 0x72
mov byte [esp + 0x12], 0x63
mov byte [esp + 0x14], 0x6c
mov byte [esp + 0x15], 0x48
mov byte [esp + 0x17], 0x73
mov byte [esp + 0x19], 0x79
mov byte [esp + 0x1a], 0
mov byte [esi + 0x57], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 8]
push ecx
push eax
push 0x411cf8
mov ecx, esi
mov dword [esi + 0x48], 0xffffffff
call fcn.00401cd0
mov ecx, dword [esp + 0x1b4]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1b8
ret
Function at 0x401560
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x24
push esi
push edi
mov esi, ecx
call fcn.004019d0
mov eax, dword [esi + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 6
push 1
push 2
mov byte [esi + 0x57], 0
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x48], eax
jne 0x401598
pop edi
xor al, al
pop esi
add esp, 0x24
ret 8
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x4015b3
pop edi
xor al, al
pop esi
add esp, 0x24
ret 8
mov edx, dword [esp + 0x34]
mov word [esp + 0x1c], 2
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x1e], ax
mov eax, dword [edi + 0xc]
push 0x10
mov ecx, dword [eax]
lea eax, [esp + 0x20]
push eax
mov edx, dword [ecx]
mov ecx, dword [esi + 0x48]
push ecx
mov dword [esp + 0x2c], edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4015f5
pop edi
xor al, al
pop esi
add esp, 0x24
ret 8
mov eax, dword [esi + 0x48]
lea edx, [esp + 8]
push 4
push edx
push 8
push 0xffff
push eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x401650
push eax
lea ecx, [esp + 0x10]
push eax
push ecx
push eax
push eax
mov eax, dword [esi + 0x48]
lea edx, [esp + 0x24]
push 0xc
push edx
push 0x98000004
push eax
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 0x2bf20
mov dword [esp + 0x3c], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 0
push 0
push 0
push esi
push 0x401680
push 0
push 0
mov byte [esi + 0x57], 1
mov dword [esi + 0x50], 0
call fcn.00403330
add esp, 0x1c
mov dword [esi + 0x44], eax
mov al, 1
pop edi
pop esi
add esp, 0x24
ret 8
Function at 0x401bd0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
push ebp
mov dword [esp + 0x18], ecx
push ebx
call fcn.00403660
mov esi, dword [esp + 0x2c]
add esp, 8
mov edi, ebp
cmp ebp, esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], edi
jb 0x401c58
xor ebp, ebp
mov eax, dword [esp + 0x14]
push 0
push esi
push ebx
mov ecx, dword [eax + 0x48]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
test edi, edi
jg 0x401c2b
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebp
cmp ebp, 0xf
jl 0x401c05
cmp ebp, 0xf
je 0x401ca5
mov eax, dword [esp + 0x1c]
push 0xa
add eax, edi
add ebx, esi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
sub eax, esi
cmp eax, esi
mov dword [esp + 0x10], eax
jae 0x401c03
mov ebp, dword [esp + 0x20]
mov edi, eax
test edi, edi
jle 0x401c9d
mov dword [esp + 0x20], 0
mov edx, dword [esp + 0x14]
push 0
push edi
push ebx
mov eax, dword [edx + 0x48]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test esi, esi
jg 0x401c92
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x20]
inc eax
cmp eax, 0xf
mov dword [esp + 0x20], eax
jl 0x401c64
cmp dword [esp + 0x20], 0xf
je 0x401ca5
add dword [esp + 0x1c], esi
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x401ca8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x401cd0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x400
push ebx
push ebp
push esi
push edi
xor ebx, ebx
xor esi, esi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x414]
lea edi, [esp + 0x10]
mov eax, ebx
xor edx, edx
div dword [esp + 0x41c]
mov ebp, dword [esp + 0x418]
xor eax, eax
mov byte [ebx + ecx], bl
inc ebx
add edi, 4
cmp ebx, 0x100
mov al, byte [edx + ebp]
mov dword [edi - 4], eax
jl 0x401cfa
xor eax, eax
lea edi, [esp + 0x10]
mov dl, byte [eax + ecx]
mov ebp, dword [edi]
mov ebx, edx
and ebx, 0xff
add ebx, ebp
add esi, ebx
and esi, 0x800000ff
jns 0x401d4a
dec esi
or esi, 0xffffff00
inc esi
mov bl, byte [esi + ecx]
add edi, 4
mov byte [eax + ecx], bl
inc eax
cmp eax, 0x100
mov byte [esi + ecx], dl
jl 0x401d29
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x400
ret 0xc
Function at 0x401d70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push edi
xor ecx, ecx
xor esi, esi
xor edi, edi
test eax, eax
jbe 0x401dfc
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
inc ecx
and ecx, 0x800000ff
jns 0x401d9b
dec ecx
or ecx, 0xffffff00
inc ecx
mov dl, byte [ecx + eax]
mov ebx, edx
and ebx, 0xff
add esi, ebx
and esi, 0x800000ff
jns 0x401db8
dec esi
or esi, 0xffffff00
inc esi
mov bl, byte [esi + eax]
mov byte [esp + 0x18], dl
mov byte [ecx + eax], bl
mov ebx, dword [esp + 0x18]
mov byte [esi + eax], dl
xor edx, edx
mov dl, byte [ecx + eax]
and ebx, 0xff
add edx, ebx
and edx, 0x800000ff
jns 0x401de6
dec edx
or edx, 0xffffff00
inc edx
mov dl, byte [edx + eax]
mov bl, byte [edi + ebp]
xor bl, dl
mov edx, dword [esp + 0x1c]
mov byte [edi + ebp], bl
inc edi
cmp edi, edx
jb 0x401d8a
pop ebp
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x402000
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, ecx
push edi
xor edi, edi
mov eax, dword [ebx + 0xfac]
mov dword [ebx], 0x40c1d4
test eax, eax
jbe 0x402041
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
lea esi, [ebx + 0xc]
mov eax, dword [esi]
push 0xffffffffffffffff
push eax
call ebp
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0xfac]
inc edi
add esi, 4
cmp edi, eax
jb 0x402021
pop esi
pop ebp
mov ecx, ebx
call fcn.00402200
pop edi
pop ebx
ret

Function at 0x402380
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
xor ecx, ecx
mov ebp, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea ebx, [ecx + eax + 0x18]
jbe 0x402441
push esi
push edi
add ebx, 0x10
cmp dword [ebx], 0
jne 0x4023eb
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x40241f
mov eax, dword [ebx - 4]
push 4
push 0x1000
add eax, ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx - 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x40241f
mov ecx, dword [ebx - 4]
mov eax, dword [ebx]
push 4
push 0x1000
add ecx, ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x18]
mov edx, ecx
add esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
add ebx, 0x28
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cx, word [edx + 6]
cmp eax, ecx
jl 0x4023ae
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x402450
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
xor ecx, ecx
push ebp
mov ebx, dword [eax]
xor ebp, ebp
mov cx, word [ebx + 0x14]
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x402504
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4024a7
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4024ea
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov edx, dword [edx*4 + 0x40e0a8]
je 0x4024be
or dh, 2
mov ecx, dword [edi - 0x14]
test ecx, ecx
jne 0x4024d7
test al, 0x40
je 0x4024ce
mov ecx, dword [ebx + 0x20]
jmp 0x4024d5
test al, 0x80
je 0x4024ea
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x4024ea
lea eax, [esp + 0x10]
push eax
push edx
push ecx
mov ecx, dword [edi - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
xor eax, eax
inc ebp
add edi, 0x28
mov ebx, dword [edx]
mov ax, word [ebx + 6]
cmp ebp, eax
jl 0x402474
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x402800
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push 0x4122fc
push edi
push esi
push 0x4122fc
push str.Remark
push str.Setting
call fcn.004035c0
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x40283b
push edi
push esi
call dword [sym.imp.WS2_32.dll_gethostname]
pop edi
pop esi
ret
Function at 0x402890
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value

Disassembly:
sub esp, 0x240
mov ax, word [0x40ecf0]
mov cl, byte [0x40ecf2]
push ebx
push esi
push edi
mov word [esp + 0x4c], ax
mov byte [esp + 0x4e], cl
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x4f]
rep stosd dword es:[edi], eax
mov dx, word [0x40ecec]
mov ecx, 0x3f
stosb byte es:[edi], al
mov al, byte [0x40ecee]
lea edi, [esp + 0x14f]
mov byte [esp + 0x14e], al
xor eax, eax
mov word [esp + 0x14c], dx
lea edx, [esp + 0x4c]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea edi, [esp + 0x14c]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0xc], 0x48
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x10], 0x57
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov bl, 0x44
and ecx, 3
mov byte [esp + 0xf], bl
rep movsb byte es:[edi], byte [esi]
mov cl, 0x45
mov byte [esp + 0x15], bl
mov byte [esp + 0x13], cl
mov byte [esp + 0x16], cl
mov al, 0x41
mov dl, 0x52
mov bl, 0x53
mov cl, 0x49
mov byte [esp + 0xd], al
mov byte [esp + 0xe], dl
mov byte [esp + 0x11], al
mov byte [esp + 0x12], dl
mov byte [esp + 0x17], bl
mov byte [esp + 0x19], dl
mov byte [esp + 0x1a], cl
mov byte [esp + 0x1d], cl
mov byte [esp + 0x21], bl
mov al, 0x5c
mov bl, 0x73
mov cl, 0x74
mov dl, 0x65
mov byte [esp + 0x14], al
mov byte [esp + 0x18], 0x43
mov byte [esp + 0x1b], 0x50
mov byte [esp + 0x1c], 0x54
mov byte [esp + 0x1e], 0x4f
mov byte [esp + 0x1f], 0x4e
mov byte [esp + 0x20], al
mov byte [esp + 0x22], 0x79
mov byte [esp + 0x23], bl
mov byte [esp + 0x24], cl
mov byte [esp + 0x25], dl
mov byte [esp + 0x26], 0x6d
mov byte [esp + 0x27], al
mov byte [esp + 0x28], 0x43
mov byte [esp + 0x29], dl
mov byte [esp + 0x2a], 0x6e
mov byte [esp + 0x38], al
mov byte [esp + 0x2b], cl
mov eax, 4
mov cl, 0x72
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], eax
mov byte [esp + 0x2c], cl
mov byte [esp + 0x30], cl
mov byte [esp + 0x37], cl
lea eax, [esp + 0x3c]
lea ecx, [esp + 0xc]
push eax
push ecx
push closesocket
mov byte [esp + 0x39], 0x61
mov byte [esp + 0x3a], 0x6c
mov byte [esp + 0x3b], 0x50
mov byte [esp + 0x3d], 0x6f
mov byte [esp + 0x3e], 0x63
mov byte [esp + 0x3f], dl
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], bl
mov byte [esp + 0x42], 0x6f
mov byte [esp + 0x45], 0x30
mov byte [esp + 0x46], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea edx, [esp + 0x48]
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x48]
push eax
mov eax, dword [esp + 0x44]
push ecx
lea edx, [esp + 0x58]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x3c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x40]
pop edi
pop esi
pop ebx
add esp, 0x240
ret