joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bba0
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45cc4b
mov eax, dword fs:[0]
push eax
mov eax, 0x3024
call fcn.00434580
mov eax, dword [0x474104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x302c], edi
mov dword [ebp - 0x3028], edi
lea eax, [ebp - 0x3018]
mov dword [ebp - 0x3028], edi
push eax
lea eax, [ebp - 0x3010]
mov dword [ebp - 0x3018], 0x1000
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0x2000
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 0x3024]
mov dword [ebp - 0x301c], 0x1000
push ecx
lea ecx, [ebp - 0x301c]
mov dword [ebp - 0x3020], 0x1000
push ecx
push eax
lea eax, [ebp - 0x3020]
push eax
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x3010]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x41bc76
mov dword [ebp - 4], eax
call fcn.00403280
test eax, eax
je 0x41bd6c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
jmp 0x41bd4e
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
mov esi, eax
mov dword [ebp - 4], 1
call fcn.00403280
mov ecx, eax
test ecx, ecx
je 0x41bd76
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3014], eax
mov dword [ebp - 4], 2
movzx eax, byte [esi + 5]
push eax
push 1
lea eax, [ebp - 0x3014]
push str.S__d__d
push eax
call fcn.00415310
add esp, 0x10
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
xor esi, esi
movzx eax, byte [eax]
test eax, eax
je 0x41bd1b
mov ebx, dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov edi, eax
nop dword [eax]
push esi
lea eax, [ebp - 0x1010]
push eax
call ebx
push dword [eax]
lea eax, [ebp - 0x3014]
push str.__lu
push eax
call fcn.0041de50
inc esi
add esp, 0xc
cmp esi, edi
jl 0x41bcf0
mov edi, dword [ebp - 0x302c]
mov esi, dword [ebp - 0x3014]
add esi, 0xfffffff0
push esi
call fcn.00414980
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov dword [ebp - 4], 3
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41bd4e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00433370
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403130
push 0x80004005
call fcn.00403130
int3
Function at 0x41e670
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x41e6a1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x41e690
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x421240
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
mov esi, ecx
xor cl, cl
push edi
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x42145d
cmp eax, 0x7c
je 0x42145d
cmp eax, 0x29
jne 0x421281
cmp dword [esi + 0x10], 0
jne 0x42145d
cmp eax, eax
jne 0x421281
test dword [esi + 0x50], 0x10000000
je 0x42146a
jmp 0x421416
cmp eax, 0x2e
jne 0x421292
push 5
lea ecx, [esi + 0x24]
call fcn.004214c0
jmp 0x42130e
cmp eax, 0x5c
jne 0x4212f1
mov ecx, esi
call fcn.004211f0
test byte [esi + 0x50], 0x80
je 0x4212e5
movzx eax, word [esi + 0x48]
cmp eax, 0x62
jne 0x4212c3
push 4
lea ecx, [esi + 0x24]
call fcn.004214c0
mov ecx, esi
call fcn.004211f0
jmp 0x42144f
cmp eax, 0x42
jne 0x4212e5
push 4
lea ecx, [esi + 0x24]
call fcn.004214c0
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.004211f0
jmp 0x42144f
mov ecx, esi
call fcn.00422910
jmp 0x421448
cmp eax, 0x5b
jne 0x42135e
mov ecx, esi
call fcn.004211f0
mov ecx, esi
call fcn.00422820
cmp dword [esi + 0x4c], 0x5d
jne 0x421478
mov edx, dword [esi + 8]
mov eax, dword [esi]
cmp eax, edx
je 0x421352
cmp word [eax], 0x5c
jne 0x42134d
lea ecx, [eax + 2]
cmp ecx, edx
je 0x42134d
mov edx, dword [esi + 0x50]
test dl, 8
jne 0x421339
movzx edi, word [ecx]
cmp edi, 0x28
je 0x42134b
cmp edi, 0x29
je 0x42134b
test dl, 0x10
jne 0x42134d
movzx edx, word [ecx]
cmp edx, 0x7b
je 0x42134b
cmp edx, 0x7d
jne 0x42134d
mov eax, ecx
add eax, 2
mov dword [esi], eax
mov ecx, esi
call fcn.004200b0
jmp 0x421448
cmp eax, 0x28
jne 0x4213d2
mov ecx, esi
call fcn.004211f0
mov ecx, esi
call fcn.00422ab0
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x42146a
mov eax, dword [esi]
mov edx, dword [esi + 8]
cmp eax, edx
je 0x4213c1
cmp word [eax], 0x5c
jne 0x4213bc
lea ecx, [eax + 2]
cmp ecx, edx
je 0x4213bc
mov edx, dword [esi + 0x50]
test dl, 8
jne 0x4213a8
movzx edi, word [ecx]
cmp edi, 0x28
je 0x4213ba
cmp edi, 0x29
je 0x4213ba
test dl, 0x10
jne 0x4213bc
movzx edx, word [ecx]
cmp edx, 0x7b
je 0x4213ba
cmp edx, 0x7d
jne 0x4213bc
mov eax, ecx
add eax, 2
mov dword [esi], eax
mov ecx, esi
call fcn.004200b0
test bl, bl
je 0x42144f
jmp 0x421448
cmp eax, 0x5e
jne 0x4213ea
push 2
lea ecx, [esi + 0x24]
call fcn.004214c0
mov ecx, esi
call fcn.004211f0
jmp 0x42144f
cmp eax, 0x24
jne 0x421402
push 3
lea ecx, [esi + 0x24]
call fcn.004214c0
mov ecx, esi
call fcn.004211f0
jmp 0x42144f
cmp eax, 0x2a
je 0x421463
cmp eax, 0x2b
je 0x421463
cmp eax, 0x3f
je 0x421463
cmp eax, 0x7b
je 0x421463
cmp eax, 0x7d
jne 0x421426
test dword [esi + 0x50], 0x10000000
je 0x421471
jmp 0x421434
cmp eax, 0x5d
jne 0x421434
test dword [esi + 0x50], 0x10000000
je 0x421478
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.00422d70
mov ecx, esi
call fcn.004211f0
mov ecx, esi
call fcn.00422bc0
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x421253
pop edi
pop esi
mov al, cl
pop ebx
ret
push 0xa
call fcn.004200a0
push 5
call fcn.004200a0
push 6
call fcn.004200a0
push 4
call fcn.004200a0
int3
Function at 0x428b30
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d56a
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x474104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.LogUtils::LogAppender.0
lea edi, [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [esi + 0xc], 1
mov dword [esi + 0x10], 0
call fcn.00403280
mov ecx, eax
test ecx, ecx
je 0x428cf4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
lea ebx, [esi + 0x18]
call fcn.00403280
mov ecx, eax
test ecx, ecx
je 0x428cfe
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
call fcn.00403280
mov ecx, eax
test ecx, ecx
je 0x428d08
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0xffffffff
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_InitializeCriticalSection]
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 5
mov dword [esi + 0x10], eax
test edx, edx
jne 0x428c12
xor ecx, ecx
jmp 0x428c30
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x428c20
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.004149f0
push edi
mov ecx, ebx
call fcn.00413ff0
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x428c4c
xor ecx, ecx
jmp 0x428c64
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x428c54
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x1c]
call fcn.004149f0
push ebx
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
call fcn.00429520
push eax
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.00413ff0
mov edx, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x428ca5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
test eax, eax
je 0x428cde
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x428cde
cmp dword [esi + 0x10], 0
je 0x428cd5
push dword [edi]
call fcn.00442d92
add esp, 4
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00403130
push 0x80004005
call fcn.00403130
push 0x80004005
call fcn.00403130
int3
Function at 0x429320
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d658
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x474104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
test esi, esi
je 0x4294f4
push str.__set_log_lev0
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x429375
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 4]
jmp 0x4294f4
push str.__set_log_lev1
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x429393
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
jmp 0x4294f4
push str.__set_log_lev2
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4293b1
mov eax, dword [edi]
mov ecx, edi
push 2
call dword [eax + 4]
jmp 0x4294f4
push str.__set_log_lev3
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4293cf
mov eax, dword [edi]
mov ecx, edi
push 3
call dword [eax + 4]
jmp 0x4294f4
push str.__reload_log_switch
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4294f4
lea eax, [edi + 4]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x4293f4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x2c]
mov dword [edi + 0x1c], 3
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], ecx
jb 0x429427
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
cmp ecx, 8
jae 0x42943f
movups xmm0, xmmword [eax]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
jmp 0x42947d
mov esi, ecx
mov eax, SysReAllocString
or esi, 7
lea ecx, [ebp - 0x28]
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00407300
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x2c]
push eax
call fcn.00435890
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
push 0x461d54
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00415f50
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4294ab
mov dword [edi + 0x1c], 0
cmp dword [edi + 0x28], 0
je 0x4294e4
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x4294e4
push str._______log_reload_switch
lea ecx, [ebp - 0x4c]
call fcn.00405b20
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x4c]
push edx
mov byte [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x4c]
call fcn.00405ac0
lea ecx, [ebp - 0x28]
call fcn.00405ac0
lea ecx, [ebp - 0x34]
call fcn.00428dc0
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.00433370
mov esp, ebp
pop ebp
ret 4
Function at 0x429890
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d717
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x474104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea esi, [edi + 4]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x4298da
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, ebx
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4298e6
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [edi + 0x2c]
call fcn.00406fd0
cmp dword [edi + 0x28], 0
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x24], eax
jne 0x429953
push 0x48
call fcn.004335f1
mov ebx, eax
add esp, 4
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x429947
push 0x48
push 0
push ebx
call fcn.004356c0
add esp, 0xc
mov ecx, ebx
push dword [ebp + 0x14]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.00428b30
jmp 0x429949
xor eax, eax
mov ebx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
mov dword [edi + 0x28], eax
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0x10], eax
mov ecx, ebx
mov dword [ebp - 0x14], 7
sete al
lea edx, [ecx + 2]
lea eax, [eax*2 + 1]
mov dword [edi + 0x1c], eax
xor eax, eax
mov word [ebp - 0x28], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429980
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.00406fd0
push 3
push 0x461d54
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00416a60
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4299cf
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], eax
cmp dword [edi + 0x28], 0
je 0x429a1e
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x429a1e
push 0x10
xor eax, eax
mov dword [ebp - 0x40], 0
push str._______log_start
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.00406fd0
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x50]
push edx
mov byte [ebp - 4], 3
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x50]
call fcn.00405ac0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x429a54
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x429a4a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x429a91
push edx
push ecx
call fcn.0043389e
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test esi, esi
je 0x429a73
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00433370
mov esp, ebp
pop ebp
ret 0x14
call fcn.0043d7cf
int3
Function at 0x42ce90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d9f3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x474104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0xf
mov byte [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
lea ecx, [esi + 0x48]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov dword [ebp - 4], 0
mov byte [ecx], 0
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0xffffffff
push 0
push 0x46bc10
mov byte [ebp - 4], 1
mov dword [esi + 0x60], 4
mov byte [esi + 0x6c], 0
mov byte [esi + 0x40], 0
mov dword [esi + 0x44], 0
call fcn.00407160
mov dword [esi + 0x68], 0
mov eax, esi
mov dword [esi + 0x64], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42eb60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
test ebx, ebx
jne 0x42eb80
push ebx
push ebx
push ebx
push 2
call fcn.00431740
pop edi
xor al, al
pop ebx
pop ebp
ret 8
push esi
mov esi, dword [edi + 0x18]
test esi, esi
je 0x42eb97
mov ecx, esi
mov esi, dword [esi + 0x3c]
push 1
mov eax, dword [ecx]
call dword [eax]
test esi, esi
jne 0x42eb88
push 2
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
push 0
push ebx
mov dword [edi + 8], 0xffffffff
mov dword [edi + 4], 0xffffffff
call fcn.004480b9
push ebx
call fcn.00448718
push 0
mov esi, eax
push 0
push ebx
mov dword [ebp + 8], esi
call fcn.004480b9
add esp, 0x1c
test esi, esi
jg 0x42ebf1
push 0
push 0
push 0
push 0xc
mov ecx, edi
call fcn.00431740
pop esi
pop edi
xor al, al
pop ebx
pop ebp
ret 8
lea eax, [esi + 1]
push eax
call fcn.004338d4
push ebx
mov ebx, dword [ebp + 8]
mov esi, eax
push 1
push ebx
push esi
mov byte [esi], 0
call fcn.00447d16
add esp, 0x14
cmp eax, 1
je 0x42ec35
push esi
call fcn.004338cf
add esp, 4
mov ecx, edi
push 0
push 0
push 0
push 2
call fcn.00431740
pop esi
pop edi
xor al, al
pop ebx
pop ebp
ret 8
mov byte [esi + ebx], 0
mov eax, esi
mov cl, byte [esi]
mov edx, esi
test cl, cl
je 0x42ec66
mov dword [ebp + 8], eax
lea ebx, [edx + 1]
inc eax
cmp cl, 0xd
jne 0x42ec5c
mov byte [edx], 0xa
cmp byte [eax], 0xa
cmovne eax, dword [ebp + 8]
inc eax
jmp 0x42ec5e
mov byte [edx], cl
mov cl, byte [eax]
mov edx, ebx
test cl, cl
jne 0x42ec43
push dword [ebp + 0xc]
mov byte [edx], 0
mov ecx, edi
mov eax, dword [edi]
push 0
push esi
call dword [eax + 8]
push esi
call fcn.004338cf
add esp, 4
cmp byte [edi + 0x40], 0
sete al
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x448511
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00434580
mov eax, dword [0x474104]
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.0044c26c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x448553
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4486af
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0045abc0
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 + 0x476be0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00443ec3
mov ecx, dword [esi*4 + 0x476be0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4486a8
cmp eax, dword [ecx + edi + 0x24]
jne 0x4486a8
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4486a8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00443ec3
add esp, 0x14
test edx, edx
jl 0x4486a8
jg 0x44861e
test eax, eax
jb 0x4486a8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4486a8
jl 0x448638
cmp dword [ebp - 0x1008], eax
ja 0x4486a8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x448656
test ebx, ebx
je 0x44868f
cmp ecx, edi
jae 0x44868f
mov al, byte [ecx]
cmp al, 0xd
jne 0x448670
lea eax, [edi - 1]
cmp ecx, eax
jae 0x44867c
cmp byte [ecx + 1], 0xa
jne 0x44867c
inc ecx
jmp 0x44867c
movzx eax, al
movsx eax, byte [eax + 0x474548]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x448656
cmp edx, ebx
jne 0x448656
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4486ad
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00433370
leave
ret

Function at 0x448b57
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x465948
push 0x465940
push str.FlsAlloc
push 0x1f
call fcn.0044cfdb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44d1e4
push dword [ebp + 8]
mov ecx, esi
call dword [0x45e260]
call esi
jmp 0x44d1ea
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x44d22e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x465958
push 0x465950
push str.FlsGetValue
push 0x21
call fcn.0044cfdb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44d265
push dword [ebp + 8]
mov ecx, esi
call dword [0x45e260]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]

Function at 0x44d26d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x465960
push 0x465958
push str.FlsSetValue
push 0x22
call fcn.0044cfdb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44d2a7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x45e260]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]