joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6c2a1e00
Capabilities:
Encode data using xor

Disassembly:
hlt
push edi
sbb cl, byte [edi - 0x92bf5bb]
or dh, 0x5b
pop esp
movsb byte es:[edi], byte [esi]
xchg ecx, eax
or dl, ah
test byte [eax - 0x5ba3a432], 0x91
sub al, 0xbf
xor dl, byte [ebp - 0x2b39c388]
imul edi, dword [eax + ebx*4 + 0x55], 0xad367d44
insb byte es:[edi], dx
jle 0x6c2a1d69
insb byte es:[edi], dx
scasd eax, dword es:[edi]
xchg edi, eax
xchg esi, eax
sub byte [edx - 0x4f], 0x92
invalid
dec ebx
jo 0x6c2a1d4f
sub eax, 0x5512e4
sal byte [ecx - 7], cl
scasd eax, dword es:[edi]
jmp 0x6c2a1d9c
movsb byte es:[edi], byte [esi]
pop edx
push cs
mov byte [esi + 0x4c], bh
scasb al, byte es:[edi]
cmp dh, byte [ebx + eax*2 + 0x2a65e36a]
aam 0x13
xchg esp, eax
adc byte [edi + 0x3b25d4d7], dh
shl byte [edi], 1
sub dword [edx + 0x2f], eax
std
jbe 0x6c2a1d65
sub al, 0xc1
xchg dword [ecx + 0x60b2c27b], ebx
int 0xf4
jns 0x6c2a1dff
mov esi, 0x422861a5
scasd eax, dword es:[edi]
inc esp
adc al, 0x39
push es
aad 0xa4
sub dword [edx + 0x6e], 0xffffffb5
mov ch, 5
cmp bl, byte [ebx]
cld
jbe 0x6c2a1d86
sbb byte [eax + 0x30e6b4ee], cl
out 0x30, al
xor byte [ebp + 0x36dfd6a], al
leave
test dword [edx - 3], ebp
insd dword es:[edi], dx
add ecx, ecx
test byte [ebx + edi*2], al
mov al, 0xf
jl 0x6c2a1d9b
fst dword [ebx - 0x17]
loopne 0x6c2a1de3
cmp eax, 0x8327205
jnp 0x6c2a1e6c
jns 0x6c2a1e5d
inc esp
std
dec ecx
aas
sub byte [eax - 0x292d918a], al
jbe 0x6c2a1e6d
jge 0x6c2a1db8
cld
stc
int1
add al, byte [eax + 0x1773f5b2]
sub eax, 0xbd8333bb
add dword [bp + di], esi
fisub word [ebp + 0x68]
cmc
mov edx, es
lcall 0xf3e4, 0xcebff64a
into
in al, 0xf3
push ebx
sbb ebp, dword [0xc8fe4c20]
out dx, al
or dl, byte [ecx]
push 0xffffffffffffffc2
test eax, 0x12249e88
adc edx, edx
test eax, 0x38ae0c32
test eax, 0x38ae0c32
xor dword [edi - 0x80], edi
mov ch, 0x76
invalid
sbb dl, byte [ebx]
mov al, 0xd4
sar bh, 0x2b
adc esi, dword [eax + 0x2bffc0d4]
adc dword [eax - 0x7f], 0x5067ea32
ror bl, cl
jno 0x6c2a1e46
push esp
and edx, dword [eax - 0x3d95c136]
jmp 0xa76e630f
Function at 0x6c82a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.6c82a1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x6c82a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x6c82a06a
add dl, dl
jne 0x6c82a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x6c82a0dc
xor eax, eax
add dl, dl
jne 0x6c82a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x6c82a17d
add dl, dl
jne 0x6c82a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x6c82a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x6c82a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x6c82a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x6c82a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x6c82a075
mov eax, 1
add dl, dl
jne 0x6c82a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x6c82a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x6c82a0e1
sub eax, ebx
mov ebx, 1
jne 0x6c82a128
mov ecx, 1
add dl, dl
jne 0x6c82a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x6c82a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x6c82a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x6c82a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x6c82a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x6c82a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x6c82a136
cmp eax, 0x7d00
jae 0x6c82a16d
cmp eax, 0x500
jb 0x6c82a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x6c82a075
cmp eax, 0x7f
ja 0x6c82a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x6c82a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x6c82a19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x6c82a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x3000c2fb
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x3000e730
call fcn.3000c781
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x30012128
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x3000c09a
cmp eax, esi
jne 0x3000c08d
xor esi, esi
inc esi
mov ebx, esi
jmp 0x3000c09d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x3000c074
xor esi, esi
inc esi
mov eax, dword [0x30012124]
cmp eax, esi
jne 0x3000c0b0
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x3000c0df
mov eax, dword [0x30012124]
test eax, eax
jne 0x3000c0d9
mov dword [0x30012124], esi
push 0x30001290
push 0x30001288
call fcn.301b1000
pop ecx
pop ecx
test eax, eax
je 0x3000c0df
jmp 0x3000c207
mov dword [0x30011ddc], esi
mov eax, dword [0x30012124]
cmp eax, esi
jne 0x3000c103
push 0x30001284
push 0x30001278
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x30012124], 2
test ebx, ebx
jne 0x3000c10f
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x30012134], 0
je 0x3000c133
push 0x30012134
call fcn.3000c709
pop ecx
test eax, eax
je 0x3000c133
push 0
push 2
push 0
call dword [0x30012134]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x3000c18f
test al, al
je 0x3000c14d
cmp dword [ebp - 0x1c], 0
jne 0x3000c18f
mov al, byte [esi]
test al, al
je 0x3000c15d
cmp al, 0x20
ja 0x3000c15d
inc esi
mov dword [ebp - 0x20], esi
jmp 0x3000c14d
test byte [ebp - 0x3c], 1
je 0x3000c169
movzx eax, word [ebp - 0x38]
jmp 0x3000c16c
push 0xa
pop eax
push eax
push esi
push 0
push 0x30000000
call main
mov dword [0x30011dd8], eax
cmp dword [0x30011dcc], 0
jne 0x3000c1e3
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x3000c19e
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x3000c1b1
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x3000c13a
cmp dword [0x30011ddc], 0
jne 0x3000c1f2
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x30011dd8]
jmp 0x3000c213
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.3000c7c6
ret
call fcn.3000bf21
jmp 0x3000c03a
Function at 0x40d3ad
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42c4d8
cmp edx, dword [eax]
je 0x40d3cf
add eax, 8
inc ecx
cmp eax, 0x42c568
jl 0x40d3c0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42c4d8]
jne 0x40d4fd
mov eax, dword [0x4303d8]
cmp eax, 1
je 0x40d4d7
test eax, eax
jne 0x40d400
cmp dword [0x42c0a4], 1
je 0x40d4d7
cmp edx, 0xfc
je 0x40d4fd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40d437
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040d630
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040bd30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40d47a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040bd30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x424c14
push edi
call fcn.0040f900
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040d630
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040d640
lea eax, [ebp - 0xa0]
push 0x424bf4
push eax
call fcn.0040d640
push dword [esi + 0x42c4dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040d640
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040f877
add esp, 0x2c
pop edi
jmp 0x40d4fd
lea eax, [ebp + 8]
lea esi, [esi + 0x42c4dc]
push 0
push eax
push dword [esi]
call fcn.0040bd30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x415070
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.0040a240
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41513b
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 0x41513b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4150ee
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4150f9
or bh, 8
and edi, 0x8000000
je 0x415114
mov eax, dword [0x431b7c]
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 0x41513b
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 0x415510
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 0x41553b
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 0x41555f
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 0x41557a
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 0x418f9e
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 0x418fe0
call fcn.0041e009
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x418fe0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x418fd7
xor eax, eax
jmp 0x418fe8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00418fee
pop edi
pop esi
pop ebx
ret 4

Function at 0x41e7c2
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 0x41e7f0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41e80e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041e728
jmp 0x41e80e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41e80e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041e728
test edi, edi
mov eax, edi
jne 0x41e7f8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10063e5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebx
mov dword [0x100a078], eax
je 0x100646a
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
push 0x10062b2
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [0x100a074], eax
je 0x100646a
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [0x100a078]
call edi
cmp eax, 0xffffffff
jne 0x100644e
mov esi, 0x8000ffff
jmp 0x1006494
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1006494
push ebx
push 0x10062bf
push ebx
push 0x65
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 0xffffffff
jne 0x100647c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100643c
call esi
mov esi, eax
jmp 0x1006494
cmp eax, ebx
mov esi, eax
jl 0x1006494
push ebx
push dword [0x100a074]
call edi
cmp eax, 0x102
je 0x1006435
xor esi, esi
mov eax, dword [0x100a074]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x10064ac
push eax
call edi
mov dword [0x100a074], ebx
mov eax, dword [0x100a078]
cmp eax, ebx
je 0x10064be
push eax
call edi
mov dword [0x100a078], ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x10064c7
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 8]
push eax
push 0x20019
xor edi, edi
push edi
push 0x1001958
push 0x80000002
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x1006505
jle 0x10064fe
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x1006635
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push edi
mov ebx, 0x1002834
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
cmp eax, edi
je 0x100653d
jg 0x1006531
mov esi, eax
jmp 0x1006634
and eax, 0xffff
or eax, 0x80070000
jmp 0x100652a
cmp dword [ebp - 0x10], 2
je 0x100654d
mov esi, 0x8000ffff
jmp 0x1006634
push dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x40
call edi
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x100656b
mov esi, 0x8007000e
jmp 0x1006625
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push ebx
push dword [ebp - 8]
call esi
test eax, eax
je 0x100658e
jle 0x10065b2
and eax, 0xffff
or eax, 0x80070000
jmp 0x10065b2
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0
push dword [ebp - 0xc]
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x10065c8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10065b6
call esi
mov esi, eax
jmp 0x1006625
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1006625
add eax, eax
push eax
push 0x40
call edi
mov edi, eax
test edi, edi
jne 0x10065dc
mov esi, 0x8007000e
jmp 0x100661a
push dword [ebp - 4]
push edi
push dword [ebp - 0xc]
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x1006610
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10065fe
call esi
mov esi, eax
jmp 0x100661a
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x100661a
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 8]
mov dword [eax], edi
xor edi, edi
test edi, edi
je 0x1006625
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xc], 0
je 0x1006634
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
cmp dword [ebp - 8], 0
je 0x1006644
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret 4
Function at 0x1006d63
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1002a08
call fcn.0100737c
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1006da0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1006da0
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1006db8
cmp eax, 0x20b
je 0x1006da5
mov dword [ebp - 0x1c], ebx
jmp 0x1006dcc
cmp dword [ecx + 0x84], 0xe
jbe 0x1006da0
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1006dc6
cmp dword [ecx + 0x74], 0xe
jbe 0x1006da0
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100a0a0], 0xffffffff
or dword [0x100a0a4], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100a098]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100a094]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100a0a8], eax
call fcn.01007376
cmp dword [0x100a050], ebx
jne 0x1006e27
push fcn.01007376
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01007364
push 0x1001228
push 0x1001224
call sub.msvcrt.dll__initterm
mov eax, dword [0x100a090]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x100a08c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x1001220
push 0x100121c
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x1006ebd
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x1006e91
cmp al, 0x22
jne 0x1006e83
cmp byte [esi], 0x22
jne 0x1006e9a
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x1006ea4
cmp al, 0x20
jbe 0x1006e96
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x1006ec8
movzx eax, word [ebp - 0x48]
jmp 0x1006ecb
cmp byte [esi], 0x20
jbe 0x1006e9a
inc esi
mov dword [ebp - 0x34], esi
jmp 0x1006ebd
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1006ee8
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1006f1d
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010073b5
ret
Function at 0x10074e9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.010074d0
test eax, eax
je 0x1007512
push 0
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov dword [ebp + 8], eax
jmp 0x100756e
mov eax, dword [ebp + 0x10]
push edi
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x100756d
mov eax, dword [ebp + 0x10]
push 0
push 0
lea ecx, [eax + eax]
push ecx
push edi
push eax
push dword [ebp + 0xc]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
mov dword [ebp + 0x10], eax
je 0x100755d
push 0
lea ecx, [ebp + 0x10]
push ecx
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1007566
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, dword [ebp + 8]
pop ebp
ret 0xc
Function at 0x100797c
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 8], 0
push ebx
push esi
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
or ebx, 0xffffffff
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x10079c8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10079b3
call esi
mov esi, eax
jmp 0x1007b02
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1007b02
mov eax, dword [0x1002a3c]
xor ecx, ecx
mov ch, al
movzx ax, ah
push 0x10
mov word [ebp - 0x18], 2
or ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
mov word [ebp - 0x16], cx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, ebx
jne 0x1007a26
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1007a11
call esi
mov esi, eax
jmp 0x1007aea
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1007aea
mov esi, dword [ebp + 0x10]
push edi
xor eax, eax
push 0xc
pop ecx
mov edi, esi
rep stosd dword es:[edi], eax
mov al, byte [esi]
and al, 0xcb
or al, 0xb
mov byte [esi], al
call fcn.0100786a
push edx
push eax
call fcn.010077f7
xor edi, edi
push edi
push 0x30
push esi
push dword [ebp - 4]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, ebx
jne 0x1007a84
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1007a72
call esi
mov esi, eax
jmp 0x1007ae9
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1007ae9
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [ebp - 8], eax
je 0x1007a60
push 1
push eax
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, ebx
je 0x1007a60
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x1007a60
cmp eax, 0x102
jne 0x1007ac3
mov esi, 0x800705b4
jmp 0x1007ae9
push edi
push 0x30
push esi
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
call fcn.0100786a
cmp esi, ebx
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov dword [ecx + 4], edx
je 0x1007a60
xor esi, esi
pop edi
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [ebp - 8], 0
je 0x1007b02
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
leave
ret 0x10

Function at 0x1007d07
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1007d2c
jle 0x1007d2e
and eax, 0xffff
or eax, 0x80070000
jmp 0x1007d2e
xor eax, eax
add esp, 0x190
ret