joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f720
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44f737
add esp, 0xfffffff0
call fcn.00403548
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004198f4
mov eax, dword [0x456fa4]
cmp word [eax + 2], 0
jne 0x44f75f
mov eax, dword [0x456fa4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450df8
mov eax, dword [0x45704c]
cmp word [eax + 2], 0
jne 0x44f779
mov eax, dword [0x45704c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450ff0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411a24]
call fcn.004031f4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411a24]
call fcn.004031f4
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41bdb4]
call fcn.00422ed0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44f900
mov eax, dword [0x456ecc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004232a0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4515a0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x456ecc]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c494
test eax, eax
je 0x44f86e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004087c0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c4bc
test eax, eax
je 0x44f882
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404204
mov eax, dword [0x456dc8]
cmp byte [eax], 0
jne 0x44f8b6
mov eax, ebx
call fcn.0044fa28
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045177c
mov eax, ebx
call fcn.00452140
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44f8f6
call fcn.004035a0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44fca8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x458bb0]
cmp dword [eax + 0x30], 0
je 0x44fd52
cmp dword [ebx + 0x94], 0
jne 0x44fd4c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44fc38
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44fd4c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44fd12
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44fd4c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413d8c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44fd21
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4508b4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4508e9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404084
jmp 0x4508f6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403fe8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x451958
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x451999
mov eax, esi
call fcn.00438258
test al, al
je 0x451999
mov eax, dword [ebx + 0x84]
call fcn.00437f54
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x451999
push 0
mov eax, dword [ebx + 0x84]
call fcn.00437f54
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x517050
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc0000]
push edi
jmp 0x51706a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x517071
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x517060
mov eax, 1
add ebx, ebx
jne 0x517083
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x517094
jne 0x5170b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5170b3
dec eax
add ebx, ebx
jne 0x5170a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x517078
add ebx, ebx
jne 0x5170af
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x517105
xor ecx, ecx
sub eax, 3
jb 0x5170cb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51713a
sar eax, 1
mov ebp, eax
jmp 0x5170d6
add ebx, ebx
jne 0x5170d6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5170a4
inc ecx
add ebx, ebx
jne 0x5170e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5170a4
add ebx, ebx
jne 0x5170f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5170e6
jne 0x517102
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5170e6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x517124
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x517116
jmp 0x517066
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x517124
add edi, ecx
jmp 0x517066
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x517142
cmp byte [edi], 0x11
jne 0x517142
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x517147
lea edi, [esi + 0x110000]
mov eax, dword [edi]
or eax, eax
je 0x5171bf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x155b60]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x155cdc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x517174
mov ecx, edi
jns 0x5171a3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x155ce0]
or eax, eax
je 0x5171b9
mov dword [ebx], eax
add ebx, 4
jmp 0x517191
call dword [esi + 0x155cf0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5171f0
cmp al, 0xef
ja 0x5171e3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5171c5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5171d2
mov ebp, dword [esi + 0x155ce4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x517224
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x894970
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1da000]
push edi
or ebp, 0xffffffff
jmp 0x894992
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x894999
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x894988
mov eax, 1
add ebx, ebx
jne 0x8949ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8949bc
jne 0x8949db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8949db
dec eax
add ebx, ebx
jne 0x8949c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8949a0
add ebx, ebx
jne 0x8949d7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x894a2d
xor ecx, ecx
sub eax, 3
jb 0x8949f3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x894a62
sar eax, 1
mov ebp, eax
jmp 0x8949fe
add ebx, ebx
jne 0x8949fe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8949cc
inc ecx
add ebx, ebx
jne 0x894a0c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8949cc
add ebx, ebx
jne 0x894a19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x894a0e
jne 0x894a2a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x894a0e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x894a4c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x894a3e
jmp 0x89498e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x894a4c
add edi, ecx
jmp 0x89498e
pop esi
mov edi, esi
mov ecx, 0x69e7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x894a6a
cmp byte [edi], 0x26
jne 0x894a6a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x894a6f
lea edi, [esi + 0x48b000]
mov eax, dword [edi]
or eax, eax
je 0x894ae7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x498b94]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x498cd4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x894a9c
mov ecx, edi
jns 0x894acb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x498cd8]
or eax, eax
je 0x894ae1
mov dword [ebx], eax
add ebx, 4
jmp 0x894ab9
call dword [esi + 0x498ce8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x894b18
cmp al, 0xef
ja 0x894b0b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x894aed
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x894afa
mov ebp, dword [esi + 0x498cdc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x894b4c
sub esp, 0xffffff80
jmp 0x4af6c0
Function at 0x673cbf32
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x67d89014]
mov dword [ebp - 0xc], eax
jmp 0x673cc011
jmp 0x673cc0e2
jmp 0x673cc1b3
jmp 0x673cc284
jmp 0x673cc355
jmp 0x673cc426
jmp 0x673cc4f7
jmp 0x673cc5c8
jmp 0x673cc699
jmp 0x673cc76a
jmp 0x673cc83b
jmp 0x673cc90c
jmp 0x673cc9dd
jmp 0x673ccaae
jmp 0x673ccb7f
jmp 0x673ccc50
jmp 0x673ccd21
jmp 0x673ccdf2
jmp 0x673ccec3
jmp 0x673ccf94
jmp 0x673cd065
jmp 0x673cd136
jmp 0x673cd207
jmp 0x673cd2d8
jmp 0x673cd3a9
jmp 0x673cd47a
cmp dword [ebp - 0xc], 0
je 0x673d29be
mov eax, dword [0x67d89014]
mov dword [0x67d8900c], eax
jmp 0x673cd55f
jmp 0x673cd630
jmp 0x673cd701
jmp 0x673cd7d2
jmp 0x673cd8a3
jmp 0x673cd974
jmp 0x673cda45
jmp 0x673cdb16
jmp 0x673cdbe7
jmp 0x673cdcb8
jmp 0x673cdd89
jmp 0x673cde5a
jmp 0x673cdf2b
jmp 0x673cdffc
jmp 0x673ce0cd
jmp 0x673ce19e
jmp 0x673ce26f
jmp 0x673ce340
jmp 0x673ce411
jmp 0x673ce4e2
jmp 0x673ce5b3
jmp 0x673ce684
jmp 0x673ce755
jmp 0x673ce826
jmp 0x673ce8f7
jmp 0x673ce9c8
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [0x67d89008], eax
jmp 0x673ceaa9
jmp 0x673ceb7a
jmp 0x673cec4b
jmp 0x673ced1c
jmp 0x673ceded
jmp 0x673ceebe
jmp 0x673cef8f
jmp 0x673cf060
jmp 0x673cf131
jmp 0x673cf202
jmp 0x673cf2d3
jmp 0x673cf3a4
jmp 0x673cf475
jmp 0x673cf546
jmp 0x673cf617
jmp 0x673cf6e8
jmp 0x673cf7b9
jmp 0x673cf88a
jmp 0x673cf95b
jmp 0x673cfa2c
jmp 0x673cfafd
jmp 0x673cfbce
jmp 0x673cfc9f
jmp 0x673cfd70
jmp 0x673cfe41
jmp 0x673cff12
mov eax, dword [0x67d89008]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x10], eax
jmp 0x673cffee
jmp 0x673d00bf
jmp 0x673d0190
jmp 0x673d0261
jmp 0x673d0332
jmp 0x673d0403
jmp 0x673d04d4
jmp 0x673d05a5
jmp 0x673d0676
jmp 0x673d0747
jmp 0x673d0818
jmp 0x673d08e9
jmp 0x673d09ba
jmp 0x673d0a8b
jmp 0x673d0b5c
jmp 0x673d0c2d
jmp 0x673d0cfe
jmp 0x673d0dcf
jmp 0x673d0ea0
jmp 0x673d0f71
jmp 0x673d1042
jmp 0x673d1113
jmp 0x673d11e4
jmp 0x673d12b5
jmp 0x673d1386
jmp 0x673d1457
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call eax
sub esp, 0x10
mov dword [0x67d89004], eax
jmp 0x673d1555
jmp 0x673d1626
jmp 0x673d16f7
jmp 0x673d17c8
jmp 0x673d1899
jmp 0x673d196a
jmp 0x673d1a3b
jmp 0x673d1b0c
jmp 0x673d1bdd
jmp 0x673d1cae
jmp 0x673d1d7f
jmp 0x673d1e50
jmp 0x673d1f21
jmp 0x673d1ff2
jmp 0x673d20c3
jmp 0x673d2194
jmp 0x673d2265
jmp 0x673d2336
jmp 0x673d2407
jmp 0x673d24d8
jmp 0x673d25a9
jmp 0x673d267a
jmp 0x673d274b
jmp 0x673d281c
nop
leave
ret
Function at 0x6741d650
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], 0x67d88040
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.6741d6b0

Function at 0x6741d6b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x67d89378]
test esi, esi
jle 0x6741d79d
mov edi, dword [0x67d8937c]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x6741d6e4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x6741d796
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x6741d6d0
mov dword [esp], eax
mov esi, eax
call fcn.6741de50
test eax, eax
mov edi, eax
je 0x6741d7da
mov esi, dword [0x67d8937c]
lea ebx, [ebx + ebx*2]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.6741df60
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x67d8937c]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6741d7ba
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x6741d78f
sub eax, 0x40
and eax, 0xffffffbf
je 0x6741d78f
mov eax, dword [esp + 0x20]
add ebx, dword [0x67d8937c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x6741d7a4
add dword [0x67d89378], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor ebx, ebx
jmp 0x6741d6ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6741d650
mov eax, dword [0x67d8937c]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.6741d650
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6741d650
lea esi, [esi]
Function at 0x6741dac0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x67d89388
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x67d89380]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x6741db15
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6741db0e
test esi, esi
je 0x6741db0e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6741daf0
mov dword [esp], 0x67d89388
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10004400
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001dac0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10028080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.1000665e
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10005bc0
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.10004330
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000dfdc
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000e01b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000e01b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000e01b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000e01b
cmp dword [ecx + 0x74], 0xe
jbe 0x1000e01b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001292e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100075d0
mov eax, dword [0x10028080]
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.10010fa6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10012970
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10012acc
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1001d620
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 + 0x10029900]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100124b7
mov ecx, dword [esi*4 + 0x10029900]
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 0x10012ac5
cmp eax, dword [ecx + edi + 0x24]
jne 0x10012ac5
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 0x10012ac5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100124b7
add esp, 0x14
test edx, edx
jl 0x10012ac5
jg 0x10012a3b
test eax, eax
jb 0x10012ac5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10012ac5
jl 0x10012a55
cmp dword [ebp - 0x1008], eax
ja 0x10012ac5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10012a73
test ebx, ebx
je 0x10012aac
cmp ecx, edi
jae 0x10012aac
mov al, byte [ecx]
cmp al, 0xd
jne 0x10012a8d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10012a99
cmp byte [ecx + 1], 0xa
jne 0x10012a99
inc ecx
jmp 0x10012a99
movzx eax, al
movsx eax, byte [eax + 0x10028328]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10012a73
cmp edx, ebx
jne 0x10012a73
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10012aca
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000661f
leave
ret
Function at 0x10012c92
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 + 0x10029900]
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 0x10012cd2
cmp byte [ebx], 0xa
jne 0x10012cd2
or byte [edi + eax + 0x28], 4
jmp 0x10012cd7
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 0x10012dd6
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10012db9
inc eax
cmp dl, 0xd
je 0x10012d03
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10012d29
cmp eax, ecx
jae 0x10012d37
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 0x10012ceb
jmp 0x10012dd6
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 0x10012db4
cmp dword [ebp - 0x10], 0
je 0x10012db4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10029900]
test byte [eax + edi + 0x28], 0x48
je 0x10012d8e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10012d79
mov byte [esi], dl
jmp 0x10012d8a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10029900]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10012dd6
cmp byte [ebp - 1], 0xa
jne 0x10012d9d
cmp esi, ebx
jne 0x10012d9d
mov byte [esi], 0xa
jmp 0x10012dd5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100124d5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10012dd6
mov byte [esi], 0xd
jmp 0x10012dd5
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10029900]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10012dd3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10012dd6
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret