joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x10004098
push ebx
push 0x40
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, byte [ebp + 0xc]
push ebx
mov byte [edi], al
push dword [0x10004098]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop ebx
pop ebp
ret

Function at 0x10001032
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x10004098
push ebx
push 0x40
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 0xc]
push ebx
mov dword [edi], eax
push dword [0x10004098]
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop ebx
pop ebp
ret

Function at 0x1000109c
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
lea eax, [ebp - 0x100]
push esi
push edi
mov esi, str..dinputx.dll
lea edi, [ebp - 0x100]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100010f2
push 0xff
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [ebp - 0x100]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100010e2
mov esi, 0x10003040
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop esi
test eax, eax
je 0x10001116
push 0x1000304c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10004094], eax
mov esp, ebp
pop ebp
ret

Function at 0x10001497
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
mov ecx, dword [eax + 0x3c]
cmp dword [ecx + eax + 0x24], esi
jne 0x100014b3
call fcn.1000111a
pop ecx
pop esi
ret
push esi
push esi
push 0x100020e6
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x100014cd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x10002090
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x10004098
push ebx
push 0x40
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, byte [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebp + 0xc]
sub eax, edi
push ebx
sub eax, 5
mov dword [edi + 1], eax
push dword [0x10004098]
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop ebx
pop ebp
ret
Function at 0x710c78
Capabilities:
Encode data using xor

Disassembly:
push 0x7109ec
pop ebx
add ecx, edi
and ecx, edi
call fcn.00710cb4
add edi, edi
and ecx, edi
xor dword [esi], ebx
add edi, 0xcceb4094
add edi, 0xe63b637b
or edi, edi
inc esi
inc edi
and ecx, ecx
cmp esi, eax
jne fcn.00710c78
push 0x77c88e06
pop ecx
ret

Function at 0x402990
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x405130], eax
mov ecx, ebp
add ecx, 8
mov dword [0x40507c], ecx
mov dword [0x4050b0], 0x30
mov dword [0x4050b4], 2
mov dword [0x4050bc], 0
mov dword [0x4050c0], 0
mov dword [0x4050b8], 0x402f20
jmp 0x4029e3
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x4050c4], eax
mov dword [0x4050d0], 0xf
mov dword [0x4050d8], 0x4040ad
mov dword [0x405074], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4050c8], eax
mov dword [0x4050dc], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4050cc], eax
push 0x4050b0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x405074]
push 0
push 0
push 0x24e
push 0x281
push 0xfffff448
push 0xffffec78
push 0x40000
push str.mini
push str.second
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405128], eax
xor eax, eax
jmp 0x402a82
push 5
push dword [0x405128]
call dword [sym.imp.user32.dll_ShowWindow]
test eax, eax
jne 0x402ab6
push 0
push 0x24f
push 0x282
push 0xfffff447
push 0xffffec77
push dword [0x405128]
call dword [sym.imp.user32.dll_MoveWindow]
push dword [0x405128]
call dword [sym.imp.user32.dll_UpdateWindow]
push 0
push 0
push 0
push 0x4050e0
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x402aef
push 0x4050e0
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x4050e0
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x402ac2
mov eax, dword [0x4050e8]
jmp 0x402afc
call 0x40213f
ret
Function at 0x40297b
Capabilities:
Get common file path
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1400
call fcn.00408f80
mov eax, dword [0x2abf000]
mov ecx, dword [0x2abdf50]
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x402a58
push ebx
push edi
mov edi, ecx
mov ebx, eax
cmp dword [0x2abf000], 0x959
jne 0x402a46
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExA]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push esi
lea eax, [ebp - 0xc00]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
call dword [sym.imp.KERNEL32.dll_HeapUnlock]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
lea eax, [ebp - 0x1400]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
call fcn.00402787
add edi, 8
dec ebx
jne 0x4029a7
pop edi
pop ebx
pop esi
leave
ret
Function at 0x407009
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44a9f0]
jne 0x407013
repz ret
jmp fcn.004087f5

Function at 0x40716b
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.0040386a
and dword [ebp - 4], 0
cmp dword [0x44b8cc], 0
mov ebx, eax
jne 0x40721c
push 0x4019c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4072cd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4019b8
push edi
call esi
test eax, eax
je 0x4072cd
push eax
call fcn.004037f8
mov dword [esp], 0x4019a8
push edi
mov dword [0x44b8cc], eax
call esi
push eax
call fcn.004037f8
mov dword [esp], 0x401994
push edi
mov dword [0x44b8d0], eax
call esi
push eax
call fcn.004037f8
mov dword [esp], 0x401978
push edi
mov dword [0x44b8d4], eax
call esi
push eax
call fcn.004037f8
pop ecx
mov dword [0x44b8dc], eax
test eax, eax
je 0x40721c
push 0x401960
push edi
call esi
push eax
call fcn.004037f8
pop ecx
mov dword [0x44b8d8], eax
mov eax, dword [0x44b8d8]
cmp eax, ebx
je 0x407274
cmp dword [0x44b8dc], ebx
je 0x407274
push eax
call fcn.00403873
push dword [0x44b8dc]
mov esi, eax
call fcn.00403873
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407274
test edi, edi
je 0x407274
call esi
test eax, eax
je 0x40726b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40726b
test byte [ebp - 0xc], 1
jne 0x407274
or dword [ebp + 0x10], 0x200000
jmp 0x4072ad
mov eax, dword [0x44b8d0]
cmp eax, ebx
je 0x4072ad
push eax
call fcn.00403873
pop ecx
test eax, eax
je 0x4072ad
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4072ad
mov eax, dword [0x44b8d4]
cmp eax, ebx
je 0x4072ad
push eax
call fcn.00403873
pop ecx
test eax, eax
je 0x4072ad
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44b8cc]
call fcn.00403873
pop ecx
test eax, eax
je 0x4072cd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4072cf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402937
Capabilities:
Get common file path
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1400
call fcn.00408f30
mov eax, dword [0x2a8f000]
mov ecx, dword [0x2a8df50]
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x402a14
push ebx
push edi
mov edi, ecx
mov ebx, eax
cmp dword [0x2a8f000], 0x959
jne 0x402a02
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExA]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push esi
lea eax, [ebp - 0xc00]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
call dword [sym.imp.KERNEL32.dll_HeapUnlock]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
lea eax, [ebp - 0x1400]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
call fcn.00402747
add edi, 8
dec ebx
jne 0x402963
pop edi
pop ebx
pop esi
leave
ret
Function at 0x406fb9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a9f0]
jne 0x406fc3
repz ret
jmp fcn.004087a5

Function at 0x40711b
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.00403826
and dword [ebp - 4], 0
cmp dword [0x41b8cc], 0
mov ebx, eax
jne 0x4071cc
push 0x4019c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40727d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4019b8
push edi
call esi
test eax, eax
je 0x40727d
push eax
call fcn.004037b4
mov dword [esp], 0x4019a8
push edi
mov dword [0x41b8cc], eax
call esi
push eax
call fcn.004037b4
mov dword [esp], 0x401994
push edi
mov dword [0x41b8d0], eax
call esi
push eax
call fcn.004037b4
mov dword [esp], 0x401978
push edi
mov dword [0x41b8d4], eax
call esi
push eax
call fcn.004037b4
pop ecx
mov dword [0x41b8dc], eax
test eax, eax
je 0x4071cc
push 0x401960
push edi
call esi
push eax
call fcn.004037b4
pop ecx
mov dword [0x41b8d8], eax
mov eax, dword [0x41b8d8]
cmp eax, ebx
je 0x407224
cmp dword [0x41b8dc], ebx
je 0x407224
push eax
call fcn.0040382f
push dword [0x41b8dc]
mov esi, eax
call fcn.0040382f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407224
test edi, edi
je 0x407224
call esi
test eax, eax
je 0x40721b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40721b
test byte [ebp - 0xc], 1
jne 0x407224
or dword [ebp + 0x10], 0x200000
jmp 0x40725d
mov eax, dword [0x41b8d0]
cmp eax, ebx
je 0x40725d
push eax
call fcn.0040382f
pop ecx
test eax, eax
je 0x40725d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40725d
mov eax, dword [0x41b8d4]
cmp eax, ebx
je 0x40725d
push eax
call fcn.0040382f
pop ecx
test eax, eax
je 0x40725d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41b8cc]
call fcn.0040382f
pop ecx
test eax, eax
je 0x40727d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40727f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405fb0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x270
jne 0x405fce
mov ecx, dword [ebp - 8]
call fcn.00407ed0
jmp 0x405fe1
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4e0
jb 0x405fe1
mov ecx, dword [ebp - 8]
call fcn.00407d30
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx], ecx
mov eax, dword [ebp - 4]
shr eax, 0xb
mov ecx, dword [ebp - 8]
and eax, dword [ecx + 0x1384]
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
shl edx, 7
and edx, 0x9d2c5680
xor edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
shl eax, 0xf
and eax, 0xefc60000
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shr ecx, 0x12
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x407d30
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], ecx
mov dword [ebp - 0x28], 0x26f
mov dword [ebp - 0x2c], 0xe3
mov dword [ebp - 8], 0
jmp 0x407d59
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xe3
jae 0x407dc5
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
and edx, 1
je 0x407d9d
mov dword [ebp - 0x14], 0x9908b0df
jmp 0x407da4
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
shr eax, 1
xor eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx*4 + 0xff8]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 4], eax
jmp 0x407d50
mov dword [ebp - 0xc], 0xe3
jmp 0x407dd7
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x26f
jae 0x407e43
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
and edx, 1
je 0x407e1b
mov dword [ebp - 0x1c], 0x9908b0df
jmp 0x407e22
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
shr eax, 1
xor eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 4], eax
jmp 0x407dce
mov dword [ebp - 0x30], 0x26f
mov eax, 4
imul ecx, eax, 0x4df
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx + 4]
and eax, 0x80000000
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + edx + 4]
and edx, 0x7fffffff
or eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
and eax, 1
je 0x407e8c
mov dword [ebp - 0x24], 0x9908b0df
jmp 0x407e93
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x20]
shr ecx, 1
xor ecx, dword [ebp - 0x24]
mov edx, 4
imul eax, edx, 0x18c
mov edx, dword [ebp - 4]
xor ecx, dword [edx + eax + 4]
mov eax, 4
imul edx, eax, 0x26f
mov eax, dword [ebp - 4]
mov dword [eax + edx + 4], ecx
mov ecx, dword [ebp - 4]
mov dword [ecx], 0
mov esp, ebp
pop ebp
ret
Function at 0x407ed0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0x270
jmp 0x407eeb
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x4e0
jae 0x407f57
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 - 0x9bc]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 - 0x9b8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
and edx, 1
je 0x407f2f
mov dword [ebp - 0x10], 0x9908b0df
jmp 0x407f36
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
shr eax, 1
xor eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x407ee2
mov esp, ebp
pop ebp
ret

Function at 0x40bbe5
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 0x40bc06
jl 0x40bbfd
test edi, edi
jne 0x40bc06
xor eax, eax
xor edx, edx
jmp 0x40bcc7
cmp dword [ebx + 0x38], 0
je 0x40bc1b
push eax
push edi
push dword [ebp + 8]
call fcn.0040bccd
jmp 0x40bcc7
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40bc62
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40bc62
cmp eax, edi
jb 0x40bc3c
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040d530
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 0x40bc68
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40bcbc
mov ecx, ebx
call fcn.0040b485
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40bca7
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00414e60
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 0x40bcbc
jmp 0x40bc7a
test edx, edx
je 0x40bcbc
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00414e60
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 0x40d072
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40d0b1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d0b1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d0b1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40d0b1
cmp dword [ecx + 0x74], 0xe
jbe 0x40d0b1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41bb39
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f8c4
push 0x42f8bc
push str.FlsAlloc
push 0x1e
call fcn.0041b9a6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41bb6d
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b158]
call esi
jmp 0x41bb73
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41bbb7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f8d4
push 0x42f8cc
push str.FlsGetValue
push 0x20
call fcn.0041b9a6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41bbee
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41dcde
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041db4f

Function at 0x41e0d8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040d4e0
mov eax, dword [0x43a024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041b1c8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41e11a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41e276
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00428e70
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x43cdc0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041f0cf
mov ecx, dword [esi*4 + 0x43cdc0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41e26f
cmp eax, dword [edi + ecx + 0x24]
jne 0x41e26f
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41e26f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041f0cf
add esp, 0x14
test edx, edx
jl 0x41e26f
jg 0x41e1e5
test eax, eax
jb 0x41e26f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41e26f
jl 0x41e1ff
cmp dword [ebp - 0x1008], eax
ja 0x41e26f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41e21d
test ebx, ebx
je 0x41e256
cmp ecx, edi
jae 0x41e256
mov al, byte [ecx]
cmp al, 0xd
jne 0x41e237
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41e243
cmp byte [ecx + 1], 0xa
jne 0x41e243
inc ecx
jmp 0x41e243
movzx eax, al
movsx eax, byte [eax + 0x43a2b8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41e21d
cmp edx, ebx
jne 0x41e21d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41e274
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040c731
leave
ret
Function at 0x41e56d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x43cdc0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41e5ad
cmp byte [ebx], 0xa
jne 0x41e5ad
or byte [eax + edi + 0x28], 4
jmp 0x41e5b2
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41e6b0
mov al, byte [edx]
cmp al, 0x1a
je 0x41e692
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41e5e1
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41e606
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41e610
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41e5c3
jmp 0x41e6b0
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41e68d
cmp dword [ebp - 0xc], 0
je 0x41e68d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x43cdc0]
test byte [eax + edi + 0x28], 0x48
je 0x41e667
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41e652
mov byte [esi], dl
jmp 0x41e663
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x43cdc0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41e6b0
cmp byte [ebp - 1], 0xa
jne 0x41e676
cmp esi, ebx
jne 0x41e676
mov byte [esi], 0xa
jmp 0x41e6af
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041f0ed
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41e6b0
mov byte [esi], 0xd
jmp 0x41e6af
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x43cdc0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41e6ac
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41e6b0
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret