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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x100e6bbc], ebx
push esi
push edi
jne 0x10087546
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10087581
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100a9dc4
push edi
call esi
test eax, eax
mov dword [0x100e6bbc], eax
je 0x10087581
push 0x100a9db4
push edi
call esi
push 0x100a9da0
push edi
mov dword [0x100e6bc0], eax
call esi
cmp dword [0x100e6798], 2
mov dword [0x100e6bc4], eax
jne 0x10087546
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x100e6bcc], eax
je 0x10087546
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x100e6bc8], eax
mov eax, dword [0x100e6bc8]
test eax, eax
je 0x1008758b
call eax
test eax, eax
je 0x10087572
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x100e6bcc]
test eax, eax
je 0x10087572
test byte [ebp - 8], 1
jne 0x1008758b
cmp dword [0x100e67a4], 4
jb 0x10087585
or byte [ebp + 0x12], 0x20
jmp 0x100875aa
xor eax, eax
jmp 0x100875ba
or byte [ebp + 0x12], 4
jmp 0x100875aa
mov eax, dword [0x100e6bc0]
test eax, eax
je 0x100875aa
call eax
mov ebx, eax
test ebx, ebx
je 0x100875aa
mov eax, dword [0x100e6bc4]
test eax, eax
je 0x100875aa
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x100e6bbc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10089d0f
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.1007ab40
mov eax, dword [0x100c74e4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.10086488
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x10089e42
push 2
push esi
push dword [ebp + 8]
call fcn.10086488
add esp, 0xc
cmp eax, ebx
je 0x10089e42
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x10089de2
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.1007c470
push 0x8000
push dword [ebp + 8]
call fcn.10089e50
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x10089d98
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.10084fb7
add esp, 0xc
cmp eax, 0xffffffff
je 0x10089db8
sub edi, eax
test edi, edi
jg 0x10089d90
jmp 0x10089dd0
call fcn.1007b75b
cmp dword [eax], 5
jne 0x10089dcd
call fcn.1007b752
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.10089e50
pop ecx
pop ecx
jmp 0x10089e2a
jge 0x10089e2a
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10086488
push dword [ebp + 8]
call fcn.10088e7c
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x10089e2a
call fcn.1007b752
mov dword [eax], 0xd
call fcn.1007b75b
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.10086488
add esp, 0xc
mov eax, esi
pop edi
jmp 0x10089e44
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.100833f9
leave
ret

Function at 0x1008e62b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1008e663
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.1008c6fc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.1008c6d4
jmp 0x1008e66f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x1008fd20
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 0x1008fd62
call fcn.100956b8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x1008fd62
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x1008fd59
xor eax, eax
jmp 0x1008fd6a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1008fd70
pop edi
pop esi
pop ebx
ret 4
Function at 0x402450
Capabilities:
Check if file exists
Get disk size
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4588ab
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x46d060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], 0xffffffff
jb 0x402496
mov eax, dword [esi]
jmp 0x402498
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40258f
test al, 0x10
je 0x40258f
lea eax, [ebp - 0x38]
xorps xmm0, xmm0
push eax
mov ecx, esi
movlpd qword [ebp - 0x18], xmm0
call fcn.00401d30
push esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
call fcn.00401c70
test eax, eax
jne 0x402505
cmp dword [ebp - 0x24], 8
lea ecx, [ebp - 0x20]
push 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
jmp 0x40255d
cmp dword [esi + 0x14], 8
jb 0x40250d
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x50]
call fcn.004015a0
push ecx
push 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
push 0x402420
lea ecx, [ebp - 0xb0]
call fcn.00402990
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.00402bb0
lea ecx, [ebp - 0xb0]
call fcn.00402340
mov eax, dword [ebp - 0x3c]
cmp eax, 8
jb 0x40255d
inc eax
push eax
push dword [ebp - 0x50]
call fcn.0040bd10
mov eax, dword [ebp - 0x24]
cmp eax, 8
jb 0x40256f
inc eax
push eax
push dword [ebp - 0x38]
call fcn.0040bd10
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00456d98
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x402597
mov esi, dword [esi]
push 0
push 0x80
push 3
push 0
push 1
push connect
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40256f
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push esi
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
jmp 0x402575
Function at 0x40b3d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [edi + edi*8 - 1], esi
dec dword [ebx - 0xe0807bb]
test edx, edx
je 0x40b3e4
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
inc ebp
int 0x7f
inc ebp
retf
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0040b0f6
jle 0x40b418
fmul qword [di - 0x3fbb]
push eax
call fcn.0040b106
push eax
push esi
push dword [ebp + 8]
call fcn.0040b0bb
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.0040b0f6
jo 0x40b471
xchg ecx, eax
ljmp 0xe85d
jmp 0xd72dfa3c

Function at 0x40b5b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
jp 0x40b578
inc ebp
mov byte [ebx - 0x3a], dh
inc ebp
mov dword [esi - 0x3a], ebx
inc ebp
mov dh, byte [edi - 0x3a]
inc ebp
mov edi, dword [eax - 0x3a]
inc ebp
invalid
jb 0x40b58c
inc ebp
lea edi, [edx - 0x3a]
inc ebp
invalid
jae 0x40b594
inc ebp
invalid
push edi
mov byte [ebp - 0x70], 0x16
call fcn.0040b0f6
retf
jp 0x40b578
inc ebp
mov byte [ebx - 0x3a], dh
inc ebp
mov dword [esi - 0x3a], ebx
inc ebp
mov dh, byte [edi - 0x3a]
inc ebp
mov edi, dword [eax - 0x3a]
inc ebp
invalid
Function at 0x40bb20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov al, dh
test dword [0x82fffffc], esp
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.0040b106
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040b0bb
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.0040b0f6
xchg ebp, eax
fst dword [ebx]
and byte [ebp - 0x534], 0
and byte [ebp - 0x533], 0
mov byte [ebp - 0x532], 0x68
and byte [ebp - 0x531], 0
mov byte [ebp - 0x530], 0xd4
mov byte [ebp - 0x52f], 0xfb
mov byte [ebp - 0x52e], 0xf8
mov byte [ebp - 0x52d], 0xe4
mov byte [ebp - 0x52c], 0xf2
mov byte [ebp - 0x52b], 0xdf
mov byte [ebp - 0x52a], 0xf6
mov byte [ebp - 0x529], 0xf9
mov byte [ebp - 0x528], 0xf3
mov byte [ebp - 0x527], 0xfb
mov byte [ebp - 0x526], 0xf2
mov byte [ebp - 0x525], 0x97
lea eax, [ebp - 0x534]
push eax
call fcn.0040b106
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040b0bb
add esp, 0xc
mov dword [ebp - 0x680], eax
call fcn.0040b0f6
push cs
dec edx
out dx, al
lcall 0xffff, 0xf99ca580
add byte [eax - 0x6625b], al
inc dword [eax]
mov byte [ebp - 0x662], 7
and byte [ebp - 0x661], 0
mov byte [ebp - 0x660], 0xb0
mov byte [ebp - 0x65f], 0x9d
mov byte [ebp - 0x65e], 0x99
mov byte [ebp - 0x65d], 0x88
mov byte [ebp - 0x65c], 0xb9
mov byte [ebp - 0x65b], 0x94
mov byte [ebp - 0x65a], 0x94
mov byte [ebp - 0x659], 0x97
mov byte [ebp - 0x658], 0x9b
mov byte [ebp - 0x657], 0xf8
lea eax, [ebp - 0x664]
push eax
call fcn.0040b106
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040b0bb
add esp, 0xc
or al, 0x89
test dword [ecx + edi*8 - 0x5a7f0001], eax
fdiv st(2), st(0)
invalid
inc dword [eax]
and byte [ebp - 0x523], 0
mov byte [ebp - 0x522], 0x15
and byte [ebp - 0x521], 0
mov byte [ebp - 0x520], 0xa2
mov byte [ebp - 0x51f], 0x8f
mov byte [ebp - 0x51e], 0x8b
mov byte [ebp - 0x51d], 0x9a
mov byte [ebp - 0x51c], 0xac
mov byte [ebp - 0x51b], 0x98
mov byte [ebp - 0x51a], 0x8f
mov byte [ebp - 0x519], 0x8f
mov byte [ebp - 0x518], 0xea
lea eax, [ebp - 0x524]
push eax
call fcn.0040b106
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040b0bb
add esp, 0xc
mov dword [ebp - 0x39c], eax
call fcn.0040b0f6
or ah, byte [edi + edx*4 - 0x47]
and byte [ebp - 0x514], 0
cli
invalid
inc dword [eax]
and byte [ebp - 0x513], 0
mov byte [ebp - 0x512], 0xe3
and byte [ebp - 0x511], 0
mov byte [ebp - 0x510], 0x5b
mov byte [ebp - 0x50f], 0x79
mov byte [ebp - 0x50e], 0x68
mov byte [ebp - 0x50d], 0x5a
mov byte [ebp - 0x50c], 0x75
mov byte [ebp - 0x50b], 0x70
mov byte [ebp - 0x50a], 0x79
mov byte [ebp - 0x509], 0x4f
mov byte [ebp - 0x508], 0x75
mov byte [ebp - 0x507], 0x66
mov byte [ebp - 0x506], 0x79
test edx, edi
cli
invalid
invalid
jns 0x40bd3d
test ebx, edi
cli
invalid
call [ecx*4 - 0x5137b]
call dword [eax - 0x18]
jge 0x40bd7a
invalid
call [ecx + 0x50]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040b0bb
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.0040b0f6
pop ebx
jmp 0x40bd93
invalid
Function at 0x418f20
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459bf8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x46d060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, eax
mov dword [ebp - 0x18], esi
mov edi, dword [esi]
mov esi, dword [ebp + 0x10]
cmp esi, 0xffffffff
jne 0x418f7d
cmp edi, 0x2748
je 0x418f7d
cmp edi, 0x2733
je 0x418fb6
cmp edi, 0x274c
je 0x418fb6
jmp 0x418faf
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x8004667e
push dword [ebx]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x418fb6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], esi
or esi, 0xffffffff
mov ecx, ebx
call fcn.004190a0
mov eax, dword [ebp - 0x18]
mov dword [eax], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00456d98
mov esp, ebp
pop ebp
ret 0xc

Function at 0x418fe0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [ecx + 4]
push edi
cmp dword [ebx], 0xffffffff
mov dword [esp + 0xc], ecx
jne 0x41901c
push 0
push ecx
push eax
push ecx
mov ecx, ebx
call fcn.00418e70
cmp eax, 0xffffffff
jne 0x419018
or eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov esi, dword [ecx + 8]
mov edi, dword [ebx]
call dword [eax + 4]
push esi
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x419047
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], esi
or eax, 0xffffffff
push eax
push ecx
push ebx
call fcn.00418f20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20

Function at 0x41f240
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [0x46d014]
cmp eax, 0xffffffff
jne 0x41f282
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x41f268
xor eax, eax
test eax, eax
mov dword [0x46d014], eax
setg al
ret
push eax
push 0
mov dword [0x46d014], 1
call fcn.004299b0
mov eax, dword [0x46d014]
add esp, 8
test eax, eax
setg al
ret

Function at 0x41f290
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x398], 2
jne 0x41f2e5
mov eax, dword [0x46d014]
cmp eax, 0xffffffff
jne 0x41f2df
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x41f2c5
xor eax, eax
test eax, eax
mov dword [0x46d014], eax
setg al
ret
push eax
push 0
mov dword [0x46d014], 1
call fcn.004299b0
mov eax, dword [0x46d014]
add esp, 8
test eax, eax
setg al
ret
mov al, 1
ret
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46e004]
jne 0x401010
repz ret
jmp fcn.0040161b

Function at 0x407cd6
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.00404e6b
and dword [ebp - 4], 0
cmp dword [0x470184], 0
mov ebx, eax
jne 0x407d87
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407e38
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407e38
push eax
call fcn.00404df9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x470184], eax
call esi
push eax
call fcn.00404df9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x470188], eax
call esi
push eax
call fcn.00404df9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x47018c], eax
call esi
push eax
call fcn.00404df9
pop ecx
mov dword [0x470194], eax
test eax, eax
je 0x407d87
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404df9
pop ecx
mov dword [0x470190], eax
mov eax, dword [0x470190]
cmp eax, ebx
je 0x407ddf
cmp dword [0x470194], ebx
je 0x407ddf
push eax
call fcn.00404e74
push dword [0x470194]
mov esi, eax
call fcn.00404e74
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407ddf
test edi, edi
je 0x407ddf
call esi
test eax, eax
je 0x407dd6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407dd6
test byte [ebp - 0xc], 1
jne 0x407ddf
or dword [ebp + 0x10], 0x200000
jmp 0x407e18
mov eax, dword [0x470188]
cmp eax, ebx
je 0x407e18
push eax
call fcn.00404e74
pop ecx
test eax, eax
je 0x407e18
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407e18
mov eax, dword [0x47018c]
cmp eax, ebx
je 0x407e18
push eax
call fcn.00404e74
pop ecx
test eax, eax
je 0x407e18
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x470184]
call fcn.00404e74
pop ecx
test eax, eax
je 0x407e38
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407e3a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403c50
Capabilities:
Check for time delay via gettickcount
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x14
mov eax, dword [0x54e864]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 4]
cmp eax, 0x7d0
jb 0x403d5b
cmp byte [esi + 8], 1
je 0x403d5b
lea eax, [esp + 8]
push eax
call fcn.0044a8a0
add esp, 4
mov ecx, 0x4d19d0
lea eax, [esp + 8]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403cb8
test dl, dl
je 0x403cb4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403cb8
add eax, 2
add ecx, 2
test dl, dl
jne 0x403c98
xor eax, eax
jmp 0x403cbd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x403cd7
call edi
pop edi
mov dword [esi + 4], eax
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004c6212
add esp, 0x14
ret
push 0x11
push 2
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x403d0a
push str.Error_al_crear_el_socket_UDP_para_AMYC_
push 0
call fcn.0042a000
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004c6212
add esp, 0x14
ret
xor eax, eax
mov byte [esi + 0xa042], 0
mov dword [esi + 0xa028], eax
mov dword [esi + 0xa02c], eax
mov dword [esi + 0xa030], eax
mov ecx, 2
mov dword [esi + 0xa034], eax
mov word [esi + 0xa028], cx
call fcn.0044a940
push eax
call dword [sym.imp.WSOCK32.dll_htons]
lea edx, [esp + 8]
push edx
mov word [esi + 0xa02a], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [esi + 0xa02c], eax
mov ecx, dword [esp + 0x18]
pop edi
pop esi
xor ecx, esp
call fcn.004c6212
add esp, 0x14
ret

Function at 0x403d80
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov eax, 0xffff
test ecx, ecx
je 0x403db0
mov edx, dword [esp + 4]
push esi
push edi
movzx esi, byte [edx]
movzx edi, al
shr ax, 8
xor esi, edi
xor ax, word [esi*2 + 0x4d17d0]
inc edx
dec ecx
movzx eax, ax
jne 0x403d93
pop edi
pop esi
not eax
ret 8
Function at 0x403dc0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0x5008
call fcn.004c6360
mov eax, dword [0x54e864]
xor eax, esp
mov dword [esp + 0x5004], eax
mov eax, dword [esp + 0x5010]
push esi
mov esi, ecx
cmp dword [esi], 0
push edi
mov edi, dword [esp + 0x501c]
mov dword [esp + 8], eax
jne 0x403dfa
xor al, al
jmp 0x403ef2
cmp byte [esi + 8], 0
push ebp
mov bp, word [esp + 0x5018]
je 0x403e2e
movzx eax, bp
sub eax, 0x3a9a
je 0x403e1f
sub eax, 6
jne 0x403e2e
push str.Reseteando_sistema_de_pago_AMYC.
jmp 0x403e24
push str.Solicitamos_inicio_de_pago_AMYC.
push 0
call fcn.0042a000
add esp, 8
push 0x5000
lea ecx, [esp + 0x14]
push 0
push ecx
call sub.MSVCR100.dll_memset
xor eax, eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov word [esp + 0x25], ax
mov byte [esp + 0x27], al
mov al, byte [esi + 0xa042]
add esp, 0xc
mov byte [esp + 0x10], 0x5a
mov byte [esp + 0x1c], al
cmp al, 0xff
jae 0x403e72
inc al
mov byte [esi + 0xa042], al
jmp 0x403e79
mov byte [esi + 0xa042], 1
xor edx, edx
push ebx
mov word [esp + 0x21], dx
mov word [esp + 0x23], bp
lea ebx, [esp + 0x25]
test edi, edi
je 0x403ea3
mov eax, dword [esp + 0x10]
push edi
push eax
mov ecx, ebx
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
lea ebx, [esp + edi + 0x25]
lea edx, [edi + 6]
push edx
lea eax, [esp + 0x23]
push eax
mov ecx, esi
call fcn.00403d80
push 0x10
lea ecx, [esi + 0xa028]
push ecx
push 0
add edi, 0x13
push edi
lea edx, [esp + 0x24]
mov word [ebx], ax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_sendto]
pop ebx
cmp eax, edi
je 0x403edc
xor al, al
jmp 0x403ef1
mov word [esi + 0xa040], bp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xa03c], eax
mov al, 1
pop ebp
mov ecx, dword [esp + 0x500c]
pop edi
pop esi
xor ecx, esp
call fcn.004c6212
add esp, 0x5008
ret 0xc
Function at 0x405070
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
mov esi, ecx
push str.kernel32.dll
mov dword [esi + 0x1c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x18], eax
test eax, eax
je 0x405115
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4d20cc
push eax
call edi
mov dword [esi], eax
mov eax, dword [esi + 0x18]
push str.Module32First
push eax
call edi
mov ecx, dword [esi + 0x18]
push str.Module32Next
push ecx
mov dword [esi + 4], eax
call edi
mov edx, dword [esi + 0x18]
push str.Thread32First
push edx
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x18]
push str.Thread32Next
push eax
call edi
mov ecx, dword [esi + 0x18]
push str.OpenThread
push ecx
mov dword [esi + 0x10], eax
call edi
cmp dword [esi], 0
mov dword [esi + 0x14], eax
je 0x405104
cmp dword [esi + 4], 0
je 0x405104
cmp dword [esi + 8], 0
je 0x405104
cmp dword [esi + 0xc], 0
je 0x405104
cmp dword [esi + 0x10], 0
jne 0x405115
mov edx, dword [esi + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x18], 0
push 0x224
lea edi, [esi + 0x20]
push 0
push edi
call sub.MSVCR100.dll_memset
xor eax, eax
mov dword [edi], 0x224
mov dword [esi + 0x248], eax
mov dword [esi + 0x24c], eax
mov dword [esi + 0x250], eax
mov dword [esi + 0x254], eax
mov dword [esi + 0x258], eax
add esp, 0xc
mov dword [esi + 0x25c], eax
pop edi
mov dword [esi + 0x244], 0x1c
mov eax, esi
pop esi
ret
Function at 0x405630
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0xbc
mov eax, dword [0x54e864]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0xcc]
push 0x90
lea eax, [esp + 0x38]
push 0
push eax
mov dword [esp + 0x3c], 0x94
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0x40], 2
mov eax, str.WIN32_NT
je 0x405691
mov eax, str.WINDOWS
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push eax
push str.________OS_type:__s_r_n
push edi
call ebx
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov esi, eax
mov eax, dword [esp + 0x48]
push eax
push ecx
push edx
lea eax, [edi + esi]
push str.________OS_version:_major__u__minor__u__build__u_r_n
push eax
call ebx
mov ecx, dword [esp + 0x40]
push ecx
add esi, eax
lea edx, [edi + esi]
push str.________Number_of_processors:__u_r_n
push edx
call ebx
add esi, eax
add edi, esi
push edi
call fcn.004054a0
mov ecx, dword [esp + 0xf4]
add esp, 0x30
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c6212
add esp, 0xbc
ret