joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ab77c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp], edx
mov ebx, eax
xor eax, eax
mov dword [esp + 4], eax
test ebx, ebx
je 0x4ab820
mov eax, ebx
mov edx, dword [eax + 0x3c]
add edx, eax
mov eax, edx
mov esi, eax
mov edx, dword [esi + 0x78]
mov eax, ebx
call fcn.004ab4e0
mov esi, eax
mov ebp, dword [esi + 0x18]
dec ebp
test ebp, ebp
jb 0x4ab820
inc ebp
xor edi, edi
mov edx, dword [esi + 0x20]
mov eax, ebx
call fcn.004ab4e0
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
mov edx, dword [esp + 8]
mov eax, ebx
call fcn.004ab4e0
mov dword [esp + 0xc], eax
mov eax, dword [esp]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
jne 0x4ab81c
mov edx, dword [esi + 0x24]
mov eax, ebx
call fcn.004ab4e0
movzx eax, word [eax + edi*2]
mov word [esp + 0x10], ax
mov edx, dword [esi + 0x1c]
mov eax, ebx
call fcn.004ab4e0
movzx edx, word [esp + 0x10]
mov eax, dword [eax + edx*4]
mov edx, eax
mov eax, ebx
call fcn.004ab4e0
mov dword [esp + 4], eax
inc edi
dec ebp
jne 0x4ab7b8
mov eax, dword [esp + 4]
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4ac8e8
Capabilities:
Log keystrokes via application hook

Disassembly:
xor eax, eax
mov dword [0x640088], eax
push 0x4ac928
call sub.user32.dll_RegisterWindowMessageA
mov dword [0x640088], eax
mov eax, dword [0x63902c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [0x64008c], eax
push 0
mov eax, dword [0x63c7f8]
push eax
push 0x4ac8a0
push 0xd
call sub.user32.dll_SetWindowsHookExA
mov dword [0x640090], eax
ret

Function at 0x4acb50
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405764
xor eax, eax
push ebp
push 0x4acc2a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov ecx, 0x4acc40
mov edx, dword [ebp - 4]
call fcn.004055fc
mov eax, dword [ebp - 8]
call fcn.00405774
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 6
ja case.0x4acb9a.0
jmp dword [eax*4 + 0x4acba1]
mov eax, ebx
mov edx, 0x4acc4c
call fcn.00405338
jmp 0x4acc0f
mov eax, ebx
mov edx, 0x4acc5c
call fcn.00405338
jmp 0x4acc0f
mov eax, ebx
mov edx, 0x4acc6c
call fcn.00405338
jmp 0x4acc0f
mov eax, ebx
mov edx, 0x4acc80
call fcn.00405338
jmp 0x4acc0f
mov eax, ebx
mov edx, 0x4acc90
call fcn.00405338
jmp 0x4acc0f
mov eax, ebx
mov edx, 0x4acca4
call fcn.00405338
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4acc31
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405308
ret
Function at 0x4acee4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405764
xor eax, eax
push ebp
push 0x4acf79
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov ecx, 0x4acf90
mov edx, dword [ebp - 4]
call fcn.004055fc
push 0xff
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xff
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp - 8]
call fcn.00405774
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
mov eax, ebx
call fcn.0040a00c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4acf80
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405308
ret
Function at 0x4b0810
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x108], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b08e1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x104]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 4]
lea eax, [ebp - 0x104]
call fcn.0040a93c
lea ecx, [ebp - 0x108]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00439c2c
mov eax, dword [ebp - 0x108]
mov edx, 0x4b08f8
call fcn.0040570c
je 0x4b08b1
lea ecx, [ebp - 0x10c]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00439c2c
mov eax, dword [ebp - 0x10c]
mov edx, 0x4b0904
call fcn.0040570c
je 0x4b08b1
lea eax, [ebp - 4]
mov edx, 0x4b0904
call fcn.004055b0
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00405338
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b08e8
lea eax, [ebp - 0x10c]
mov edx, 2
call fcn.00405308
lea eax, [ebp - 4]
call fcn.004052e4
ret
Function at 0x40cf59
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41c998
cmp edx, dword [eax]
je 0x40cf7b
add eax, 8
inc ecx
cmp eax, 0x41ca28
jl 0x40cf6c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41c998]
jne 0x40d0a9
mov eax, dword [0x41d9d0]
cmp eax, 1
je 0x40d083
test eax, eax
jne 0x40cfac
cmp dword [0x41c0f8], 1
je 0x40d083
cmp edx, 0xfc
je 0x40d0a9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40cfe3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403940
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403a30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40d026
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403a30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41a6e4
push edi
call fcn.00403ab0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403940
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403950
lea eax, [ebp - 0xa0]
push 0x41a6c4
push eax
call fcn.00403950
push dword [esi + 0x41c99c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403950
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00411966
add esp, 0x2c
pop edi
jmp 0x40d0a9
lea eax, [ebp + 8]
lea esi, [esi + 0x41c99c]
push 0
push eax
push dword [esi]
call fcn.00403a30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40f7b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040de0a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40f7d2
test byte [esp + 8], 2
je 0x40f7d2
mov dword [0x41d9e8], 0xd
mov dword [0x41d9ec], 5
jmp 0x40f7ad
xor eax, eax
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov dword [ebp - 0x80c], 1
mov eax, dword [ebp - 0x80c]
cmp eax, dword [ebp + 8]
jge 0x4010f6
push str._jre
mov ecx, dword [ebp - 0x80c]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
push eax
call fcn.00401540
add esp, 8
test eax, eax
jne 0x40107a
mov ecx, dword [ebp - 0x80c]
add ecx, 1
mov dword [ebp - 0x80c], ecx
mov edx, dword [ebp - 0x80c]
cmp edx, dword [ebp + 8]
jl 0x401066
call fcn.00401309
push 0xffffffffffffffff
call fcn.0040145d
mov eax, dword [ebp - 0x80c]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
mov dword [str.javaw], edx
jmp 0x4010e2
push str._help
mov eax, dword [ebp - 0x80c]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
call fcn.00401540
add esp, 8
test eax, eax
je 0x4010d4
push 0x408060
mov eax, dword [ebp - 0x80c]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
call fcn.00401540
add esp, 8
test eax, eax
je 0x4010d4
push 0x408064
mov eax, dword [ebp - 0x80c]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
call fcn.00401540
add esp, 8
test eax, eax
jne 0x4010e0
call fcn.00401309
push 0
call fcn.0040145d
jmp 0x4010f6
mov eax, dword [ebp - 0x80c]
add eax, 1
mov dword [ebp - 0x80c], eax
jmp 0x401013
mov byte [ebp - 0x804], 0
mov ecx, dword [ebp - 0x80c]
cmp ecx, dword [ebp + 8]
jge 0x401149
mov edx, dword [ebp - 0x80c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
lea edx, [ebp - 0x804]
push edx
call fcn.00401350
add esp, 8
push 0x408068
lea eax, [ebp - 0x804]
push eax
call fcn.00401350
add esp, 8
mov ecx, dword [ebp - 0x80c]
add ecx, 1
mov dword [ebp - 0x80c], ecx
jmp 0x4010fd
call fcn.004011d7
lea edx, [ebp - 0x804]
push edx
call fcn.00401168
add esp, 4
push 0
call fcn.0040145d
mov esp, ebp
pop ebp
ret

Function at 0x401168
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [str.JMFCustomizer]
push ecx
mov edx, dword [str.javaw]
push edx
push str._s__s__s
lea eax, [ebp - 0x400]
push eax
call fcn.004015c4
add esp, 0x14
lea ecx, [ebp - 0x458]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x458]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x400]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x404], eax
mov esp, ebp
pop ebp
ret
Function at 0x403bb9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408478
cmp edx, dword [eax]
je 0x403bdb
add eax, 8
inc ecx
cmp eax, 0x408508
jl 0x403bcc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408478]
jne 0x403d09
mov eax, dword [0x408a10]
cmp eax, 1
je 0x403ce3
test eax, eax
jne 0x403c0c
cmp dword [0x4083c4], 1
je 0x403ce3
cmp edx, 0xfc
je 0x403d09
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403c43
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00401340
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00401690
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403c86
lea eax, [ebp - 0x1a4]
push eax
call fcn.00401690
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x407414
push edi
call fcn.00405240
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00401340
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00401350
lea eax, [ebp - 0xa0]
push 0x4073f4
push eax
call fcn.00401350
push dword [esi + 0x40847c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00401350
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004051b5
add esp, 0x2c
pop edi
jmp 0x403d09
lea eax, [ebp + 8]
lea esi, [esi + 0x40847c]
push 0
push eax
push dword [esi]
call fcn.00401690
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4065b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x4334c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4343a8]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24c], ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x434110]
cmp eax, dword [ecx + 4]
jg 0x406777
cmp dword [0x433498], 0
jne 0x40675a
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call fcn.00407390
test al, al
jne 0x406669
push esi
lea eax, [ebp - 0x1c]
push str._05d
push eax
call fcn.00401250
mov esi, eax
add esp, 0xc
cmp esi, 0x433488
je 0x406751
mov ecx, dword [0x43349c]
cmp ecx, 0xf
jbe 0x40670e
mov edx, dword [0x433488]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406704
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4067ad
jmp 0x406704
push edi
push 0
push 2
mov dword [ebp - 0x24c], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov edi, eax
lea eax, [ebp - 0x244]
push 0
push eax
call fcn.0040fb90
add esp, 0xc
mov dword [ebp - 0x248], 0x22c
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4066d7
cmp dword [ebp - 0x240], esi
je 0x4066cb
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4066b0
jmp 0x4066d7
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x24c], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [ebp - 0x24c]
lea eax, [ebp - 0x1c]
push str._05d__05d
push eax
call fcn.00401250
add esp, 0x10
mov esi, eax
cmp esi, 0x433488
pop edi
jmp 0x406626
push ecx
push edx
call fcn.0040e163
add esp, 8
mov dword [0x433498], 0
mov dword [0x43349c], 0xf
mov byte [0x433488], 0
movups xmm0, xmmword [esi]
movups xmmword [0x433488], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x433498], xmm0
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov dword [esi + 0x14], 0xf
lea ecx, [ebp - 0x1c]
call fcn.004014b0
pop esi
push 0x433488
mov ecx, ebx
call fcn.004028e0
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040e226
mov esp, ebp
pop ebp
ret
push 0x434110
call fcn.0040e1c2
add esp, 4
cmp dword [0x434110], 0xffffffff
jne 0x4065ed
push 0x4274f0
call fcn.0040e493
push 0x434110
call fcn.0040e171
add esp, 8
jmp 0x4065ed
call fcn.0041157f
int3
Function at 0x4067c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426766
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4334c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x24c], esi
call fcn.0040fb90
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push 0x7e
push eax
call fcn.0040f890
lea ecx, [ebp - 0x218]
add esp, 8
mov edx, eax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406845
sub ecx, edi
mov dword [ebp - 0x220], 0
sar ecx, 1
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x230]
movups xmmword [ebp - 0x230], xmm0
push eax
test edx, edx
je 0x40693e
call fcn.00402010
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040b970
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00406dd0
mov ecx, dword [ebp - 0x234]
add esp, 0x10
cmp ecx, 0xf
jbe 0x4068ef
mov edx, dword [ebp - 0x248]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4068e5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406983
push ecx
push edx
call fcn.0040e163
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x406966
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40695c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406983
jmp 0x40695c
call fcn.00402010
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 2
push eax
push esi
call fcn.0040b970
add esp, 8
jmp 0x40690a
push ecx
push edx
call fcn.0040e163
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e226
mov esp, ebp
pop ebp
ret
call fcn.0041157f
int3
Function at 0x40ebc0
Capabilities:
Parse pe header

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

Function at 0x419cc4
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00419c46

Function at 0x41c55e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x434aa8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c59e
cmp byte [ebx], 0xa
jne 0x41c59e
or byte [edi + eax + 0x28], 4
jmp 0x41c5a3
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41c6a2
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41c685
inc eax
cmp dl, 0xd
je 0x41c5cf
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41c5f5
cmp eax, ecx
jae 0x41c603
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41c5b7
jmp 0x41c6a2
push 0
lea eax, [ebp - 0x10]
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 0x41c680
cmp dword [ebp - 0x10], 0
je 0x41c680
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x434aa8]
test byte [eax + edi + 0x28], 0x48
je 0x41c65a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41c645
mov byte [esi], dl
jmp 0x41c656
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x434aa8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41c6a2
cmp byte [ebp - 1], 0xa
jne 0x41c669
cmp esi, ebx
jne 0x41c669
mov byte [esi], 0xa
jmp 0x41c6a1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041cfad
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41c6a2
mov byte [esi], 0xd
jmp 0x41c6a1
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x434aa8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c69f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c6a2
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41c6ab
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x434aa8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c6f1
cmp word [ebx], dx
jne 0x41c6f1
or byte [eax + edi + 0x28], 4
jmp 0x41c6f6
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x41c859
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41c839
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41c737
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41c76d
cmp eax, edx
jae 0x41c77b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41c712
jmp 0x41c859
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c834
cmp dword [ebp - 0x18], 0
je 0x41c834
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x434aa8]
test byte [eax + edi + 0x28], 0x48
je 0x41c80a
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x41c7ce
mov word [esi], cx
jmp 0x41c805
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x434aa8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x434aa8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x434aa8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41c859
pop eax
cmp word [ebp - 4], ax
jne 0x41c81a
cmp esi, ebx
jne 0x41c81a
mov word [esi], ax
jmp 0x41c856
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041cfad
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41c859
push 0xd
pop eax
jmp 0x41c815
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x434aa8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41c853
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41c859
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e3be
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c2d0
push 0x42c2c8
push str.FlsAlloc
push 0x1f
call fcn.0041e25a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e3f2
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281dc]
call esi
jmp 0x41e3f8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41e43c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c2e0
push 0x42c2d8
push str.FlsGetValue
push 0x21
call fcn.0041e25a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e473
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281dc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41e47b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c2e8
push 0x42c2e0
push str.FlsSetValue
push 0x22
call fcn.0041e25a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e4b5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4281dc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4106e9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
and dword [esp + 8], 0
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x70]
lea ebx, [esi + 0x40]
mov dword [esp + 0x10], eax
push ebx
call dword [0x43c0ac]
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
mov ebx, dword [esi + 0x38]
mov edi, dword [esi + 0x3c]
mov dword [esp + 0x18], eax
test ecx, ecx
jne 0x41074d
test eax, eax
jne 0x41074d
test edi, edi
jne 0x410744
cmp ebx, 0x8000
jae 0x410744
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
jmp 0x410759
mov ebx, 0x8000
xor edi, edi
jmp 0x410759
test edi, edi
jne 0x41076d
cmp ebx, 0x8000
jae 0x41076d
mov eax, ebx
or eax, edi
jne 0x410774
test ecx, ecx
je 0x41078d
mov dword [esp + 0x14], 1
jmp 0x41078d
mov ebx, 0x8000
xor edi, edi
push 1
push edi
push ebx
push dword [esp + 0x1c]
lea ecx, [esi + 0x18]
call fcn.0040905d
push dword [esi + 0x60]
call dword [0x43c0b8]
mov eax, dword [esi + 0x38]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x20], eax
lea eax, [esi + 0x40]
push eax
call dword [0x43c0b0]
mov eax, ebx
or eax, edi
je 0x4107d1
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x78]
push edi
push ebx
call fcn.00407940
pop ecx
pop ecx
test eax, eax
jne 0x4107dc
call dword [0x43c230]
mov dword [esi + 0x68], eax
mov dword [esi + 0x64], 1
jmp 0x4107dc
push 2
push dword [esi + 0x58]
call dword [0x43c0a0]
cmp dword [esp + 0x18], 0
lea ebx, [esi + 0x40]
je 0x410811
push ebx
call dword [0x43c0ac]
cmp dword [esi + 0x64], 0
jne 0x4107fd
mov eax, dword [esp + 0x1c]
or eax, dword [esp + 0x20]
jne 0x41080a
push dword [esi + 0x5c]
and dword [esi + 0x14], 0
call dword [0x43c0b8]
push ebx
call dword [0x43c0b0]
cmp dword [esp + 0x14], 0
je 0x410706
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret