joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4030ba
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp - 4], eax
push dword [ebp + 8]
mov dword [ebp - 0x430], ecx
call fcn.0040322b
pop ecx
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x40321f
push ebx
push esi
push edi
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push eax
call fcn.004152d0
xor eax, eax
push esi
push eax
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x426]
push eax
call fcn.004152d0
lea edi, [ebp - 0x220]
call fcn.00402fa1
push 0x42b890
mov esi, 0x104
mov eax, edi
push esi
push eax
call fcn.00412ef7
mov byte [ebp - 0x18], 0
add esp, 0x24
xor eax, eax
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ebx, 0x435b70
cmp word [ebx], 0
je 0x4031ac
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push esi
push eax
call fcn.00412f74
push ebx
lea eax, [ebp - 0x428]
push esi
push eax
call fcn.00412ef7
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x18]
call fcn.00405526
add esp, 0x1c
test eax, eax
je 0x4031ac
push 5
pop ecx
lea edi, [ebx + 0x104]
lea esi, [ebp - 0x18]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
mov esi, 0x104
jne 0x4031ac
mov word [ebx], ax
add ebx, 0x118
cmp ebx, 0x4360e8
jl 0x403154
mov edi, 0x435b70
cmp word [edi], 0
je 0x4031d7
push dword [ebp + 8]
mov ecx, edi
push dword [ebp - 0x430]
call fcn.004039af
pop ecx
pop ecx
add edi, 0x118
cmp edi, 0x4360e8
jl 0x4031bf
push 0x436b40
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.00412ef7
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
pop esi
pop ebx
cmp eax, 0xffffffff
jne 0x403219
mov dword [ebp - 0x42c], 2
mov eax, dword [ebp - 0x42c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412ee8
leave
ret
Function at 0x403402
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9a8
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x804]
cmp ecx, ebx
je 0x403424
mov eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x9a4]
push eax
push 0x101
mov dword [ebp - 0x9a8], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40344c
xor eax, eax
jmp 0x4034de
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x403445
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40348c
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [ebp - 0x9a8], eax
push 4
lea eax, [ebp - 0x9a8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
je 0x4034cd
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 2
mov dword [ebp - 0x810], eax
pop eax
push dword [ebp + 8]
mov word [ebp - 0x814], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x812], ax
push 0x10
lea eax, [ebp - 0x814]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x4034cd
xor ebx, ebx
inc ebx
jmp 0x4034dc
mov eax, dword [esi]
test eax, eax
je 0x4034dc
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
and dword [esi], ebx
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00412ee8
leave
ret

Function at 0x403617
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 0x403694
push esi
mov esi, dword [ebp + 0x10]
cmp esi, ecx
push edi
jle 0x40363e
mov eax, dword [ebp + 0xc]
add eax, ecx
not byte [eax]
inc ecx
cmp ecx, esi
jl 0x403632
lea eax, [esi + 7]
push eax
mov dword [ebp - 4], eax
call fcn.00408ab7
push dword [ebp + 0x10]
mov ebx, eax
push dword [ebp + 0xc]
add esi, 5
mov word [ebx], si
lea edi, [ebx + 2]
mov esi, 0x43303c
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 7]
push eax
movsb byte es:[edi], byte [esi]
call fcn.00419d90
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 0x403697
cmp eax, dword [ebp - 4]
jne 0x403697
mov dword [ebp - 8], 1
jmp 0x403697
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4036a2
push ebx
call fcn.00408aac
pop ecx
mov eax, dword [ebp - 8]
pop ebx
leave
ret
Function at 0x40383b
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x8e0
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x7c]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x78]
xor ebx, ebx
mov dword [ebp - 0x870], eax
mov dword [ebp - 0x86c], ecx
mov dword [ebp - 0x868], edi
lea eax, [ebp - 0x85c]
cmp edx, ebx
je 0x403879
mov eax, edx
xor edx, edx
mov word [eax], dx
mov esi, dword [ecx]
mov dword [ebp - 0x864], ebx
cmp esi, ebx
je 0x403997
cmp edi, ebx
je 0x403997
push 0xc7
lea eax, [ebp - 0x5b]
push ebx
push eax
mov byte [ebp - 0x5c], dl
call fcn.004152d0
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 0x403997
cmp eax, ebx
je 0x403997
movzx edi, word [ebp - 0x5c]
lea eax, [edi + 2]
push eax
call fcn.00408ab7
pop ecx
mov dword [ebp - 0x860], eax
test edi, edi
jle 0x403982
push 0
mov eax, edi
sub eax, ebx
push eax
mov eax, dword [ebp - 0x860]
add eax, ebx
push eax
mov eax, dword [ebp - 0x86c]
push dword [eax]
call esi
cmp eax, 0xffffffff
je 0x403960
test eax, eax
je 0x403960
add ebx, eax
cmp edi, ebx
jg 0x4038e8
push 5
pop ecx
cmp ebx, ecx
jl 0x403982
mov edi, dword [ebp - 0x860]
sub ebx, ecx
mov esi, 0x43303c
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x403982
mov ecx, dword [ebp - 0x860]
test ebx, ebx
jle 0x403940
lea eax, [ecx + 5]
mov edx, ebx
not byte [eax]
inc eax
dec edx
jne 0x40393a
mov esi, dword [ebp - 0x870]
mov eax, dword [esi]
add ecx, 5
cmp eax, ebx
jl 0x403968
push ebx
push ecx
push dword [ebp - 0x868]
call fcn.00419d90
mov dword [esi], ebx
jmp 0x403975
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x403982
push eax
push ecx
push dword [ebp - 0x868]
call fcn.00419d90
add esp, 0xc
mov dword [ebp - 0x864], 1
cmp dword [ebp - 0x860], 0
je 0x403997
push dword [ebp - 0x860]
call fcn.00408aac
pop ecx
mov ecx, dword [ebp + 0x6c]
mov eax, dword [ebp - 0x864]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412ee8
add ebp, 0x70
leave
ret
Function at 0x403edd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x42b974
mov ebx, eax
push 0x89
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
cmp ebp, edi
je 0x403f41
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebp
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov eax, dword [esp + 0x14]
push esi
mov dword [eax], esi
call fcn.00408ab7
push esi
mov edi, eax
push 0
push edi
call fcn.004152d0
push esi
push ebx
push edi
call fcn.00419d90
add esp, 0x1c
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
ret

Function at 0x403f47
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403f70
push dword [ebp + 8]
call fcn.00403fe7
pop ecx
cmp eax, dword [ebp + 0x10]
jne 0x403f70
inc ebx
jmp 0x403fe0
mov edi, 0x200000
push edi
call fcn.00413dfc
pop ecx
mov esi, eax
push esi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
lea edi, [ebp - 4]
call fcn.0040403c
add esp, 0xc
test eax, eax
je 0x403fd9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00412fe3
pop ecx
push 0x32
mov eax, 0xc8
call fcn.00402228
mov edi, dword [ebp - 4]
pop ecx
push eax
lea ebx, [edi + esi]
mov dword [ebp + 0x10], eax
call fcn.0040244f
add edi, dword [ebp + 0x10]
pop ecx
push edi
push esi
push dword [ebp + 8]
call fcn.004040aa
add esp, 0xc
mov ebx, eax
dec ebx
neg ebx
sbb ebx, ebx
inc ebx
push esi
call fcn.00414357
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x403fe7
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push closesocket
push dword [ebp + 8]
or esi, 0xffffffff
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, esi
jne 0x404016
mov edx, esi
jmp 0x404035
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x40402c
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4041a7
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x431c20]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x4361b0
push 0x67
push edi
call esi
push 0x64
mov ebx, 0x4360e8
push ebx
push 0x6d
push edi
call esi
mov eax, edi
call fcn.00404366
mov eax, dword [ebp + 0x10]
mov edx, 0x436280
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x4041f7
call section..text
push 0x7d0
mov dword [0x432fbc], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040109c
test eax, eax
je 0x404230
call fcn.00402491
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor esi, esi
push esi
push edi
push esi
push esi
push esi
mov eax, closesocket
push eax
push esi
push eax
push 0xcf0000
push 0x4361b0
push ebx
push esi
mov dword [0x436278], edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x404264
call fcn.0040260a
cmp eax, esi
jne 0x40427d
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00412ee8
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
push 0x206
mov word [esp + 0x14], ax
lea eax, [esp + 0x16]
push esi
push eax
call fcn.004152d0
mov ecx, dword [0x436788]
add esp, 0xc
cmp ecx, esi
jbe 0x4042c2
cmp word [0x43678c], si
jbe 0x4042c2
mov esi, 0x432fa0
call fcn.00402f3d
mov ax, word [0x43678c]
mov word [0x432fb0], ax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x3e8
xor edx, edx
mov edi, ecx
div edi
xor edx, edx
mov ebx, 0x436b40
div ecx
push edx
push 0x42b994
push ebx
call fcn.004044b2
add esp, 0xc
call fcn.00402ffb
lea edi, [esp + 0x10]
call fcn.00402fa1
push 0x42b890
mov edi, 0x104
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00412ef7
add esp, 0xc
push ebx
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00412ef7
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404350
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push 0x42b768
lea eax, [esp + 0x1c]
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00403c8d
push esi
jmp 0x40422a

Function at 0x405392
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 0x405526
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xff0]
mov eax, 0x1070
call fcn.00417780
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp + 0xfec], eax
mov eax, dword [ebp + 0xff8]
push esi
push edi
push 0x42b888
push eax
lea eax, [ebp - 0x18]
mov esi, ecx
xor edi, edi
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
call fcn.0041344b
add esp, 0xc
cmp dword [ebp - 0x18], edi
jne 0x405581
mov edi, esi
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 0x405614
push ebx
push 2
push edi
push dword [ebp - 0x18]
call fcn.00413b1d
push dword [ebp - 0x18]
call fcn.00413d3f
push edi
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
call fcn.00413b1d
lea eax, [ebp - 0x80]
call fcn.00405392
push dword [ebp - 0x18]
mov esi, 0x1000
push esi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.0041373e
mov ebx, eax
add esp, 0x2c
cmp ebx, edi
jbe 0x4055ee
push ebx
lea edi, [ebp - 0x80]
lea ecx, [ebp - 0x14]
call fcn.004053bd
push dword [ebp - 0x18]
add dword [ebp - 0x1c], ebx
push esi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.0041373e
mov ebx, eax
add esp, 0x14
test ebx, ebx
ja 0x4055c7
mov edi, dword [ebp - 0x20]
push edi
lea esi, [ebp - 0x80]
call fcn.00405456
push dword [ebp - 0x18]
call fcn.004137d2
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
pop ebx
cmp eax, dword [ebp - 0x24]
jb 0x405573
xor eax, eax
inc eax
mov ecx, dword [ebp + 0xfec]
pop edi
xor ecx, ebp
pop esi
call fcn.00412ee8
add ebp, 0xff0
leave
ret

Function at 0x406db7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x406dc2
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x406e74
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42ce38]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42ce38]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42ce38]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42ce38]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42ce38]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42ce38]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42ce38]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42ce38]
inc ecx
sub edi, 8
dec esi
jne 0x406dd9
pop ebx
test edi, edi
je 0x406e8d
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x42ce38]
inc ecx
dec edi
jne 0x406e78
pop esi
not eax
pop edi
ret
Function at 0x406e92
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x42ce38]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x42ce38]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x407507
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x407537
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 2]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407532
mov byte [esi + 6], 1
mov eax, dword [ebp + 0x10]
jmp 0x40755f
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x407548
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0xc]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00419d90
add esp, 0xc
add dword [esi + 0x14], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret
Function at 0x408206
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [ebx], 0
push esi
push edi
jne 0x4082ac
cmp dword [ebx + 4], 0xffffffff
jne 0x4082ac
lea esi, [ebx + 0x244]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x408233
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp ax, 0x5c
je 0x40826a
cmp ax, 0x2f
je 0x40826a
dec esi
dec esi
mov ax, word [esi + 2]
inc esi
inc esi
test ax, ax
jne 0x408257
mov edi, esi
mov esi, 0x42b890
movsd dword es:[edi], dword [esi]
push 0x18
call fcn.00408a7d
and dword [eax + 0x14], 0
and dword [eax + 7], 0
pop ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x14]
push eax
mov byte [eax], 0
mov byte [eax + 1], 1
mov byte [eax + 0xb], 0
mov dword [eax + 0x10], ecx
call fcn.00407780
mov dword [ebx], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x4082b1
mov eax, 0x1000000
pop edi
pop esi
pop ecx
ret 8

Function at 0x412ee8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431c20]
jne 0x412ef2
repz ret
jmp fcn.004177ab

Function at 0x4222bf
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.00417a80
and dword [ebp - 4], 0
cmp dword [0x435ac4], 0
mov ebx, eax
jne 0x422370
push 0x42a68c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x422421
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42a680
push edi
call esi
test eax, eax
je 0x422421
push eax
call fcn.00417a0e
mov dword [esp], 0x42a670
push edi
mov dword [0x435ac4], eax
call esi
push eax
call fcn.00417a0e
mov dword [esp], 0x42a65c
push edi
mov dword [0x435ac8], eax
call esi
push eax
call fcn.00417a0e
mov dword [esp], 0x42a640
push edi
mov dword [0x435acc], eax
call esi
push eax
call fcn.00417a0e
pop ecx
mov dword [0x435ad4], eax
test eax, eax
je 0x422370
push 0x42a628
push edi
call esi
push eax
call fcn.00417a0e
pop ecx
mov dword [0x435ad0], eax
mov eax, dword [0x435ad0]
cmp eax, ebx
je 0x4223c8
cmp dword [0x435ad4], ebx
je 0x4223c8
push eax
call fcn.00417a89
push dword [0x435ad4]
mov esi, eax
call fcn.00417a89
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4223c8
test edi, edi
je 0x4223c8
call esi
test eax, eax
je 0x4223bf
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4223bf
test byte [ebp - 0xc], 1
jne 0x4223c8
or dword [ebp + 0x10], 0x200000
jmp 0x422401
mov eax, dword [0x435ac8]
cmp eax, ebx
je 0x422401
push eax
call fcn.00417a89
pop ecx
test eax, eax
je 0x422401
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x422401
mov eax, dword [0x435acc]
cmp eax, ebx
je 0x422401
push eax
call fcn.00417a89
pop ecx
test eax, eax
je 0x422401
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x435ac4]
call fcn.00417a89
pop ecx
test eax, eax
je 0x422421
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x422423
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10024910
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x1002494e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10024946
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10024950
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10024936
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10024a20
Capabilities:
Parse pe header

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

Function at 0x10030176
Capabilities:
Encode data using xor

Disassembly:
call 0x100300ef
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x1003011f
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x1003013b
xor edx, 0
jmp 0x10030146
xor edx, edx
jmp 0x1003015d
jmp 0x10030169
xor eax, eax
push 0x8427d7c0
call 0x10030176
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x100301b2
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x1003018b
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x100301c9
add eax, 0
jno 0x100301ce
add esi, 0
ret 0x10
Function at 0x10030f37
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x10030f59
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x100310fb
cmp edi, dword [ebp + 0x10]
jb 0x100310fb
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.10030a23
inc edi
jmp 0x10030fe2
jmp 0x10030fef
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.10030a23
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.10030a23
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x10031043
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x10031027
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.10031071
add dword [eax], 0x39
jle 0x1003104d
sub al, 0xf5
mov ch, al
call fcn.10031086
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10

Function at 0x10032d5e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x10032d74
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x10032d85
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.10032dc6
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx