joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d9e5
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x100134ac
call fcn.100129e8
push 8
call fcn.10011f8a
push 0x58
mov edi, eax
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x1000da19
push eax
call fcn.1000d903
mov esi, eax
jmp 0x1000da1b
xor esi, esi
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], esi
mov dword [esi], eax
lea eax, [esi + 4]
push ebx
push eax
mov eax, dword [ebp + 0x10]
call fcn.10002fe6
mov eax, dword [ebp + 0x14]
push ebx
add esi, 0x20
push esi
call fcn.10002fe6
add esp, 0x10
push ebx
push ebx
push edi
push 0x1000db4a
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x1000da64
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.10012a87
ret 0x10

Function at 0x1000da6c
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x100134ac
call fcn.100129e8
push 8
call fcn.10011f8a
push 0x90
mov esi, eax
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], edi
je 0x1000daa1
push eax
call fcn.1000d80e
jmp 0x1000daa3
xor eax, eax
mov ecx, dword [ebp + 8]
push edi
push edi
push esi
push 0x1000dc44
push edi
mov dword [esi], ecx
mov dword [esi + 4], eax
push edi
mov word [eax], 0x48
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
je 0x1000dacb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.10012a87
ret 4

Function at 0x1000dad3
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x100134ac
call fcn.100129e8
push 8
call fcn.10011f8a
push 0x90
mov esi, eax
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], edi
je 0x1000db08
push eax
call fcn.1000d80e
jmp 0x1000db0a
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
mov dword [esi], ecx
mov dword [esi + 4], eax
lea ecx, [eax + 0x58]
mov word [eax], 0x108
call dword [0x100151e8]
push edi
push edi
push esi
push 0x1000dc44
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
je 0x1000db42
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.10012a87
ret 8
Function at 0x1000e2a9
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0x23c
mov eax, 0x10012ecd
call fcn.10012a51
mov eax, dword [ebp + 8]
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x23c]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallKingsoft_Internet_Security
mov dword [ebp - 4], ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x23c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x1000e3b5
mov eax, dword [ebp - 0x23c]
push 0x206
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x236]
push ebx
push eax
mov word [ebp - 0x238], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
push str.InstallLocation
lea eax, [ebp - 0x244]
push eax
lea esi, [ebp - 0x240]
lea edi, [ebp - 0x238]
mov dword [ebp - 0x240], 0x104
call fcn.10002494
test eax, eax
jne 0x1000e3a1
push str.hmpgconfig.ini
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000e3a1
push 7
pop ecx
xor eax, eax
mov word [ebp - 0x30], bx
lea edi, [ebp - 0x2e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x238]
push eax
push 0x10
lea eax, [ebp - 0x30]
push eax
push ebx
push str.index
push str.CurrentIndex
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x1000e3a1
mov ecx, dword [ebp - 0x248]
lea eax, [ebp - 0x30]
push eax
call dword [0x100151d0]
cmp dword [ebp - 0x23c], ebx
je 0x1000e3b5
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.10012a9b
ret

Function at 0x1000e3bb
Capabilities:
Create thread

Disassembly:
push 0x1c
mov eax, 0x100133af
call fcn.10012a51
mov eax, dword [ebp + 0x10]
push 8
mov dword [ebp - 0x24], eax
call fcn.10011f8a
push 0x90
mov ebx, eax
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], esi
je 0x1000e3f6
push eax
call fcn.1000d80e
mov esi, eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov dword [ebx + 4], esi
xor eax, eax
mov byte [ebp - 0x20], 0
lea edi, [ebp - 0x1f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xa
stosb byte es:[edi], al
push 0x10
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR80.dll__itoa_s]
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x74]
mov word [esi], 0x4000
call dword [0x100151e8]
mov eax, dword [ebp - 0x24]
xor edi, edi
push edi
add esi, 0x58
push esi
call fcn.10002fe6
pop ecx
pop ecx
push edi
push edi
push ebx
push 0x1000e46b
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
je 0x1000e463
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.10012a9b
ret 0xc
Function at 0x10010370
Capabilities:
Read file via mapping

Disassembly:
push str.GlobalFA6FBBB1_8C8E_43b1_B8EC_35573A94C231
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
test eax, eax
mov dword [esi], eax
je 0x100103aa
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 4], eax
jne 0x100103ad
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
xor eax, eax
ret
mov dword [esi + 8], eax
mov eax, 1
ret

Function at 0x10010490
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0
mov byte [0x1001e104], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10010507
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
push eax
push eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
push 0x10018758
push eax
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100104fd
mov eax, 1
cmp dword [esp + 4], eax
jne 0x100104fd
mov byte [0x1001e104], al
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
ret

Function at 0x10010f60
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
sub esp, 0x60
push esi
push edi
push 0x10018844
push eax
lea ecx, [esp + 0x14]
xor esi, esi
push ecx
mov dword [esp + 0x18], esi
call dword [sym.imp.MSVCR80.dll__wfopen_s]
add esp, 0xc
cmp dword [esp + 0xc], esi
je 0x10011032
push 0x800
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
je 0x10011020
mov edx, dword [esp + 0xc]
push edx
push 0x800
push 1
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
mov esi, dword [sym.imp.MSVCR80.dll_fread]
push edi
mov dword [esp + 0x20], 0x67452301
mov dword [esp + 0x24], 0xefcdab89
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
call esi
add esp, 0x10
test eax, eax
je 0x10011004
push edi
lea ecx, [esp + 0x14]
call fcn.10011100
mov eax, dword [esp + 0x10]
push eax
push 0x800
push 1
push edi
call esi
add esp, 0x14
test eax, eax
jne 0x10010fe4
mov ecx, dword [esp + 0x6c]
push ecx
lea esi, [esp + 0x14]
call fcn.100111c0
push edi
mov esi, 1
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 8
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10011032
push eax
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
pop edi
mov eax, esi
pop esi
add esp, 0x60
ret

Function at 0x10011f9a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001d054]
jne 0x10011fa4
repz ret
jmp fcn.10012619
Function at 0x405d6a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x405d79
pop dword [ebp - 0xc]
mov eax, 0x5c7628bf
add eax, 0xa3ca34ba
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xb22bcf81
add dword [ebp - 0x1c], 0x9c2675ca
mov dword [ebp - 0x18], 0x93a175bb
add dword [ebp - 0x18], 0x9e91d68a
mov dword [ebp - 0x14], 0xf60f5ffe
add dword [ebp - 0x14], 0x563ce430
mov dword [ebp - 0x10], 0x10dd127d
add dword [ebp - 0x10], 0xef22ed83
lea eax, [ebp - 0x1c]
push eax
mov eax, 0xdb790d57
sub eax, 0xdb389d3b
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x5179e76f
add dword [ebp - 0x1c], 0x22f881e7
mov dword [ebp - 0x18], 0x4b51a4d3
add dword [ebp - 0x18], 0xf61abca2
mov dword [ebp - 0x14], 0x27e85265
add dword [ebp - 0x14], 0x3b871a07
mov dword [ebp - 0x10], 0x885e8ceb
sub dword [ebp - 0x10], 0x885e8ceb
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3b37b
push 0
call eax
mov ecx, 0x4b7c3ae2
sub ecx, 0x4b7be4df
xor esi, esi
add esi, eax
mov edx, 0x38099fdc
sub edx, 0x37c8d7dc
add edx, dword [ebp - 0xc]
mov ebx, 0x97f8cbf1
add ebx, 0x4e11112d
mov dword [ebp - 8], 0x6c16a550
mov edi, dword [edx]
sub dword [ebp - 4], ecx
xor edi, ebx
add dword [ebp - 4], 0xf2f5241d
mov dword [esi], edi
add esi, 0xfb477239
sub esi, 0xfb477235
add edx, 0xe843a1ce
add edx, 0x17bc5e36
loop 0x405e98
add eax, 0x1d68ab23
sub eax, 0x1d676044
xor ebx, ebx
add ebx, eax
add eax, 0x5cc2f493
sub eax, 0x5cc2f48e
mov ecx, 0x400000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [eax]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x40102c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [esi]
test edi, edi
je 0x401074
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x401045
mov eax, edi
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
mov ecx, dword [ebp - 4]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x401079
test ecx, ecx
je 0x401074
test edi, edi
ja 0x40103a
xor eax, eax
pop edi
leave
ret
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x401076

Function at 0x4010d8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x4010e7
pop dword [ebp - 0x48]
mov eax, 0x4010e7
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x42bc3
push 0
mov eax, 0x410f5348
sub eax, 0x40c92fb4
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x3c0b
mov edx, eax
mov esi, 0x4ff800
add esi, dword [ebp - 0x48]
mov ebx, 0x3c4e
sub ebx, 0xdf71b2e2
xor dword [ebp - 8], 0xdd04c1d9
mov edi, dword [esi]
mov dword [ebp - 4], 0xf7c87b90
xor edi, ebx
mov dword [edx], edi
xor dword [ebp - 8], 0xb1c3d480
add edx, 0x2141c2de
add edx, 0xdebe3d26
add esi, 0x6600f8bc
add esi, 0x99ff0748
loop 0x401135
add eax, 0x33751311
add eax, 0xcc8bcfee
mov ebx, eax
add eax, 5
mov ecx, 0xf642c886
add ecx, 0x9fd377a
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x408699
Capabilities:
Create process on windows

Disassembly:
push 8
mov eax, 0x45f09f
call fcn.00447d5b
call fcn.00434582
push eax
lea ecx, [ebp - 0x10]
call fcn.0040210b
xor ebx, ebx
mov dword [ebp - 4], ebx
push dword [ebp + 0x10]
lea edi, [ebp - 0x10]
call fcn.0042f089
pop ecx
lea ecx, [ebp + 0x10]
test eax, eax
jne 0x408716
push str.Failed_to_create_launcher_path
call fcn.00402060
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_GetLastError]
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0x10]
push ecx
push 0x1b2c4
add edx, 0x838
mov ecx, eax
call fcn.0041042c
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040253e
push 0xd
pop eax
jmp 0x40882f
push str.Launcher_path:
call fcn.00402060
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x10]
push eax
push 2
mov byte [ebp - 4], 2
call fcn.00411b27
mov byte [ebp - 4], bl
mov ecx, dword [ebp + 0x10]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.0040253e
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edi, dword [ebp - 0x10]
push 5
push ebx
push eax
push edi
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, 0x271c8
mov dword [ebp + 0xc], eax
cmp dword [0x49ccc8], esi
je 0x4087b9
cmp eax, 0x21
jl 0x4087b9
mov eax, dword [ebp + 8]
push str.ShellExecute_succeded.
lea ecx, [ebp + 8]
mov dword [eax + 0xbc], 1
call fcn.00402060
push ebx
lea eax, [ebp + 8]
push eax
push 2
mov byte [ebp - 4], 5
call fcn.00411fad
mov ecx, dword [ebp + 8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
lea ecx, [edi - 0x10]
call fcn.0040253e
xor eax, eax
jmp 0x40882f
push str.ShellExecute_failed
lea ecx, [ebp + 0x10]
call fcn.00402060
mov byte [ebp - 4], 3
call dword [sym.imp.kernel32.dll_GetLastError]
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0x10]
push ecx
push esi
add edx, 0x838
mov ecx, eax
call fcn.0041042c
mov byte [ebp - 4], bl
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0040253e
cmp dword [ebp + 0xc], 5
jne 0x408824
push str.ShellExecute_failed_with_SE_ERR_ACCESSDENIED
lea ecx, [ebp + 8]
call fcn.00402060
push ebx
lea eax, [ebp + 8]
push eax
push 1
mov byte [ebp - 4], 4
call fcn.00411fad
mov ecx, dword [ebp + 8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
lea ecx, [edi - 0x10]
call fcn.0040253e
mov eax, dword [ebp + 0xc]
call fcn.00447e33
ret 0xc
Function at 0x440063
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x440087
cmp dword [edi + 0x54], 0
jne 0x440087
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00438e9f
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call main
push ebx
mov esi, eax
call dword [sym.imp.kernel32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x445157
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x497d50]
jne 0x445161
repz ret
jmp fcn.0044cc7d

Function at 0xa01058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00a011a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa0107e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa0106a
add dl, dl
jne 0xa01089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa010dc
xor eax, eax
add dl, dl
jne 0xa01096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa0117d
add dl, dl
jne 0xa010a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa010b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa010bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa010c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa010d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa01075
mov eax, 1
add dl, dl
jne 0xa010ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa010f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa010e1
sub eax, ebx
mov ebx, 1
jne 0xa01128
mov ecx, 1
add dl, dl
jne 0xa0110e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa01119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa01105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa01075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa0113f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa0114a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa01136
cmp eax, 0x7d00
jae 0xa0116d
cmp eax, 0x500
jb 0xa01168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa01075
cmp eax, 0x7f
ja 0xa01170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa01075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa0119e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa01075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x409a00
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x14]
test eax, eax
jg 0x409a21
jl 0x409a17
test esi, esi
jne 0x409a21
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ecx
ret 0xc
cmp dword [ebx + 0x38], 0
push ebp
push edi
mov edi, esi
je 0x409ad4
mov ebp, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
nop dword [eax]
mov ecx, ebx
call fcn.004059f0
mov esi, eax
mov eax, edx
mov dword [esp + 0x10], eax
test eax, eax
jl 0x409a91
jg 0x409a59
test esi, esi
je 0x409a91
cmp ebp, eax
jg 0x409a69
jl 0x409a63
cmp edi, esi
jae 0x409a69
mov esi, edi
mov dword [esp + 0x10], ebp
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push dword [esp + 0x20]
call fcn.0040d3d0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
sub edi, esi
sbb ebp, dword [esp + 0x10]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x18]
jmp 0x409ab0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x409ac0
mov eax, dword [esp + 0x18]
add edi, 0xffffffff
mov esi, 1
adc ebp, 0xffffffff
mov byte [eax], cl
add eax, esi
mov dword [esp + 0x18], eax
test ebp, ebp
jg 0x409a40
jl 0x409ac0
test edi, edi
jne 0x409a40
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sub eax, edi
pop edi
sbb edx, ebp
pop ebp
pop esi
pop ebx
pop ecx
ret 0xc
mov eax, dword [ebx + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, dword [eax]
test edx, edx
je 0x409b19
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
test eax, eax
je 0x409b20
mov edi, dword [esp + 0x1c]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ebp
call fcn.0040d3d0
mov eax, dword [ebx + 0x2c]
add ebp, esi
sub edi, esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x409b20
lea eax, [ebx + 0x2c]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x4c], 0
je 0x409b89
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x409b4a
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [eax], edx
cmp edi, 0xfff
jbe 0x409b74
push dword [ebx + 0x4c]
push 0xfff
push 1
push ebp
call fcn.004128e0
add esp, 0x10
add ebp, eax
sub edi, eax
cmp eax, 0xfff
jne 0x409b89
cmp edi, eax
ja 0x409b52
test edi, edi
je 0x409b89
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call fcn.004128e0
add esp, 0x10
sub edi, eax
mov edx, dword [esp + 0x20]
sub esi, edi
pop edi
pop ebp
mov eax, esi
sbb edx, 0
pop esi
pop ebx
pop ecx
ret 0xc

Function at 0x40cb68
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d690
push 0x42d688
push str.FlsAlloc
push 0x1e
call fcn.0041a41a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41a5e1
push dword [ebp + 8]
mov ecx, esi
call dword [0x429168]
call esi
jmp 0x41a5e7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41a62b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d6a0
push 0x42d698
push str.FlsGetValue
push 0x20
call fcn.0041a41a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41a662
push dword [ebp + 8]
mov ecx, esi
call dword [0x429168]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41bb7a
Capabilities:
Read file on windows

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

Function at 0x41bf74
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040cee0
mov eax, dword [0x47fdc0]
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.0041abe0
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41bfb6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41c112
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00428060
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 + 0x4824d8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041cf6b
mov ecx, dword [esi*4 + 0x4824d8]
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 0x41c10b
cmp eax, dword [edi + ecx + 0x24]
jne 0x41c10b
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 0x41c10b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041cf6b
add esp, 0x14
test edx, edx
jl 0x41c10b
jg 0x41c081
test eax, eax
jb 0x41c10b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41c10b
jl 0x41c09b
cmp dword [ebp - 0x1008], eax
ja 0x41c10b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41c0b9
test ebx, ebx
je 0x41c0f2
cmp ecx, edi
jae 0x41c0f2
mov al, byte [ecx]
cmp al, 0xd
jne 0x41c0d3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41c0df
cmp byte [ecx + 1], 0xa
jne 0x41c0df
inc ecx
jmp 0x41c0df
movzx eax, al
movsx eax, byte [eax + 0x480090]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41c0b9
cmp edx, ebx
jne 0x41c0b9
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41c110
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040c529
leave
ret