joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ba0a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x49e390]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov word [ebp - 0x1c], 0x2f
mov word [ebp - 0x1a], 0x2f2f
mov word [ebp - 0x18], 0x2f22
mov word [ebp - 0x16], 0x3a
mov word [ebp - 0x14], 0x2a
mov word [ebp - 0x12], 0x3f
mov word [ebp - 0x10], 0x3c
mov word [ebp - 0xe], 0x3e
mov word [ebp - 0xc], 0x7c
mov word [ebp - 0xa], 0x2f74
mov word [ebp - 8], 0x22
xor esi, esi
movzx eax, word [ebp + esi*2 - 0x1c]
push eax
push edi
call fcn.0045fdcf
test eax, eax
pop ecx
pop ecx
jne 0x40ba86
inc esi
cmp esi, 0xb
jb 0x40ba5f
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call int.0045e9eb
leave
ret
xor al, al
jmp 0x40ba79

Function at 0x41a112
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
push 0xfffffffffffffffe
pop eax
jbe 0x41a138
push esi
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x488800]
inc ecx
dec edx
jne 0x41a11b
pop edi
pop esi
ret

Function at 0x41a139
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor eax, eax
xor ecx, ecx
cmp dword [esp + 8], eax
jbe 0x41a164
mov edx, dword [esp + 4]
movzx edx, byte [ecx + edx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4a0568]
inc ecx
cmp ecx, dword [esp + 8]
jb 0x41a143
ret

Function at 0x41a595
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
call fcn.0041a112
mov ecx, dword [ebp + 8]
xor edx, edx
cmp dword [ebp + 0xc], edx
mov esi, eax
jle 0x41a5c7
lea eax, [edx + esi]
and eax, 0x3ff
mov al, byte [eax + 0x4a92e0]
xor byte [ecx], al
inc ecx
inc edx
cmp edx, dword [ebp + 0xc]
jl 0x41a5b0
mov eax, esi
pop esi
pop ebp
ret

Function at 0x41a5cc
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
test edx, edx
jle 0x41a5f1
push ebx
push edi
lea edi, [ecx + esi]
and edi, 0x3ff
mov bl, byte [edi + 0x4a92e0]
xor byte [eax], bl
inc eax
inc ecx
cmp ecx, edx
jl 0x41a5d8
pop edi
pop ebx
mov ecx, dword [esp + 4]
call fcn.0041a112
sub eax, esi
neg eax
sbb eax, eax
inc eax
ret

Function at 0x41beee
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov edx, ebx
mov ecx, edi
call fcn.0041a112
mov dword [ebp - 4], eax
xor eax, eax
test ebx, ebx
jbe 0x41bf29
mov esi, dword [ebp + 0xc]
add esi, 0x523
mov ecx, esi
and ecx, 0x3ff
mov cl, byte [ecx + 0x488800]
xor byte [eax + edi], cl
inc eax
inc esi
cmp eax, ebx
jb 0x41bf12
xor esi, esi
test ebx, ebx
jbe 0x41bf56
xor edx, edx
push 7
pop ecx
mov eax, esi
div ecx
mov bl, byte [esi + edi]
inc edx
mov ecx, edx
and ecx, 0x80000007
jns 0x41bf4b
dec ecx
or ecx, 0xfffffff8
inc ecx
rol bl, cl
mov byte [esi + edi], bl
inc esi
cmp esi, dword [ebp + 8]
jb 0x41bf2f
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x41bf5d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x41bf8f
push 7
xor edx, edx
pop ecx
mov eax, esi
div ecx
mov bl, byte [esi + edi]
sub ecx, edx
and ecx, 0x80000007
jns 0x41bf84
dec ecx
or ecx, 0xfffffff8
inc ecx
rol bl, cl
mov byte [esi + edi], bl
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x41bf69
mov edx, dword [ebp + 0xc]
xor eax, eax
test edx, edx
jbe 0x41bfb8
mov ecx, dword [ebp + 0x10]
add ecx, 0x523
mov esi, ecx
and esi, 0x3ff
mov bl, byte [esi + 0x488800]
xor byte [eax + edi], bl
inc eax
inc ecx
cmp eax, edx
jb 0x41bfa1
mov ecx, edi
call fcn.0041a112
sub eax, dword [ebp + 8]
pop esi
neg eax
sbb eax, eax
inc eax
pop ebx
pop ebp
ret
Function at 0x42f90f
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4825af
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
mov eax, dword [0x49e390]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 1
call fcn.00432baa
call dword [0x484208]
mov dword [esp + 0x10], eax
jmp 0x42f974
xor esi, esi
mov ebx, dword [0x484208]
call ebx
sub eax, dword [esp + 0x10]
cmp eax, 0x3e8
jb 0x42f999
call ebx
cmp dword [ebp + 8], esi
mov dword [esp + 0x10], eax
je 0x42f999
mov ecx, edi
call fcn.0043037f
mov eax, dword [edi + 0x108]
cmp eax, esi
mov ecx, dword [edi + 0x104]
je 0x42fa1f
cmp eax, 0xffffffff
je 0x42fa1f
cmp ecx, esi
push 2
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
pop eax
je 0x42f9c2
cmp ecx, 0xffffffff
jne 0x42f9c5
xor eax, eax
inc eax
push 1
push 0x64
push esi
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [0x48412c]
cmp eax, esi
je 0x42fa1f
cmp eax, 1
jne 0x42f974
cmp dword [esp + 0x20], esi
je 0x42f9ef
push dword [esp + 0x20]
call fcn.0045e9e6
pop ecx
cmp dword [esp + 0x30], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
je 0x42fa0b
push dword [esp + 0x30]
call fcn.0045e9e6
pop ecx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [edi + 0x140]
push eax
call dword [0x484310]
lea esi, [edi + 0x114]
mov ebx, esi
lea eax, [esp + 0x2c]
call fcn.00432ac4
call fcn.00432ce7
lea esi, [edi + 0x124]
mov ebx, esi
lea eax, [esp + 0x1c]
call fcn.004335ea
call fcn.0043372e
lea eax, [edi + 0x140]
push eax
call dword [0x484330]
lea eax, [esp + 0x2c]
call fcn.00432c72
mov esi, eax
test esi, esi
je 0x42fa92
ja 0x42fa7b
call fcn.0045fa57
test esi, esi
jle 0x42fa92
mov ebx, dword [esp + 0x30]
mov edx, ebx
mov ecx, edi
call fcn.00431dc9
add ebx, 0x68
dec esi
jne 0x42fa83
cmp dword [esp + 0x20], 0
je 0x42f972
mov esi, dword [esp + 0x24]
sub esi, dword [esp + 0x20]
sar esi, 6
je 0x42f972
test esi, esi
ja 0x42fab9
call fcn.0045fa57
test esi, esi
jle 0x42f972
mov ebx, dword [esp + 0x20]
mov edx, ebx
mov ecx, edi
call fcn.00431a45
add ebx, 0x40
dec esi
jne 0x42fac3
jmp 0x42f972

Function at 0x43949a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push dword [ebp + 8]
mov edi, eax
call fcn.00439729
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.0040d825
mov eax, dword [ebp - 4]
pop ecx
xor edx, edx
pop ecx
mov ecx, 0x14b
div ecx
xor eax, eax
inc dl
cmp dword [ebp + 8], eax
jbe 0x4394db
mov cl, al
add cl, dl
xor byte [eax + edi], cl
inc eax
cmp eax, dword [ebp + 8]
jb 0x4394ce
pop edi
leave
ret
Function at 0x4394de
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 4
push dword [ebp + 0xc]
mov edi, eax
lea eax, [ebp - 4]
push eax
call fcn.0040d84a
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, 0x14b
div ecx
add esp, 0xc
xor eax, eax
inc dl
cmp dword [ebp + 8], eax
jbe 0x439518
mov cl, al
add cl, dl
xor byte [eax + edi], cl
inc eax
cmp eax, dword [ebp + 8]
jb 0x43950b
push dword [ebp + 8]
call fcn.00439729
pop ecx
xor ecx, ecx
cmp dword [ebp - 4], eax
pop edi
sete cl
mov al, cl
leave
ret

Function at 0x439729
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor edx, edx
push 0xa
pop ebx
div ebx
or esi, 0xffffffff
xor ecx, ecx
mov edx, 0xff
test eax, eax
mov dword [ebp - 4], eax
jbe 0x439776
xor eax, eax
cmp ecx, 0xa
jae 0x439776
mov ebx, dword [ecx*4 + 0x4883d0]
add ebx, eax
movzx ebx, byte [ebx + edi]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x487fd0]
inc ecx
add eax, 0xa
cmp ecx, dword [ebp - 4]
jb 0x43974d
cmp dword [ebp + 8], 0
je 0x439799
mov eax, edi
movzx ecx, byte [eax]
dec dword [ebp + 8]
xor ecx, esi
and ecx, edx
shr esi, 8
xor esi, dword [ecx*4 + 0x487fd0]
inc eax
cmp dword [ebp + 8], 0
jne 0x43977e
mov eax, esi
pop esi
not eax
pop ebx
leave
ret

Function at 0x4397a1
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret
Function at 0x420b5b
Capabilities:
Parse pe header

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

Function at 0x433310
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43333d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43333d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x8003b3f
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x80043b4], 0x30
mov dword [0x80043bc], 0x8003351
mov dword [0x80043b8], 2
mov dword [0x80043c0], 0
mov dword [0x80043c4], 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
jmp 0x8003b82
mov dword [0x80043c8], eax
mov dword [0x80043dc], 0x80041e0
mov dword [0x80043d4], 0xf
mov dword [0x8004102], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x80043cc], eax
mov dword [0x80043e0], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x800410a], ebp
mov dword [0x80043d0], eax
push 0x80043b4
call dword [sym.imp.user32.dll_RegisterClassExA]
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x8004434], eax
push 0
push dword [0x8004102]
push 0
push 0
push 0x1ef
push 0x21c
push 0xffffe688
push 0xfffff524
push 0xcf0000
push str.uno_momento
push str.verba
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x800442c], eax
push 1
push dword [0x800442c]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x800442c]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x8003c40
xor edi, edi
lea ebx, [0x80043e4]
jmp 0x8003c58
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x8003c4a
jmp 0x8003c6c
mov eax, dword [0x80043ec]
call fcn.08002ae4
ret
Function at 0x10006590
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
sub edx, dword [ecx]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call fcn.1001cc4f
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jg 0x100065c9
jmp 0x100065e0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
add edx, dword [ebp - 4]
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
cmp edx, dword [ebp + 0x10]
jb 0x1000659d
cmp dword [ebp - 4], 0
jge 0x1000660a
call fcn.1001872f
mov eax, dword [eax]
push eax
call fcn.100185d0
add esp, 4
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
push ecx
call fcn.100064a0
add esp, 0xc
or eax, 0xffffffff
jmp 0x1000661c
cmp dword [ebp - 4], 0
jne 0x1000661a
mov edx, dword [ebp + 8]
mov dword [edx + 0x28], 1
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10017484
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x100174a9
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x100174c1
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x100174f0
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x10017532
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x10017606
sub edx, 0x10000
js 0x10017606
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x10017518
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x10017518
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x10017589
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x10017586
add edx, 8
jne 0x1001756d
jmp 0x100175f7
add edx, 4
test eax, 0xffff
jne 0x10017596
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x100175f7
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x100175ca
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x10017518
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x10017606
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x10017518
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x10017617
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x1002125a
Capabilities:
Encode data using xor

Disassembly:
jge 0x1002127f
cmp ebx, dword [ecx - 0x1e]
je 0x10021238
iretd
pop ss
jle 0x10021224
enter 0x1105, 0xffffffffffffffdc
xor dword [ebx + 0x2f745b16], esi
xor byte [edx - 0x21], ah
sbb edx, dword [ecx - 0x1f]
push esi
or dword [ebx - 0x62e94eb8], esi
dec esp
test byte [ecx - 0x4b], dh
les eax, [ebx]
sbb al, 0x37
mov dword [0xdcd73612], eax
invalid
Function at 0x10021e25
Capabilities:
Encode data using xor

Disassembly:
sbb bh, byte cs:[eax + ebx*4]
push esi
out 0x81, eax
invalid
jns 0x10021e30
mov eax, 0x5fd3286d
inc eax
mov bl, 0x9d
test al, 0xdf
mov byte [0xb6b3d14f], al
jecxz 0x10021e57
pop ebp
jbe 0x10021e9a
js 0x10021dc3
invalid
wait
invalid
push ebx
invalid

Function at 0x409c88
Capabilities:
Encode data using xor

Disassembly:
xchg ebp, eax
cwde
ret
adc bl, byte [ebp + ebx*4 - 0x66629dad]
mov ch, 0x95
xchg ebp, eax
xchg esi, eax
xor byte [edx - 0xb], bh
add byte [ecx + 0x906d7f7], ah
push 0xa5050883
xor dword [eax + 0x5eee4850], edx
pop esi
loopne 0x409c37
lodsd eax, dword [esi]
xchg ebx, edi
outsd dx, dword [esi]
fcmovnu st(0), st(5)
dec eax
cmpsd dword [esi], dword es:[edi]
sbb al, 0x71
imul ebx, dword [ebp + 0x752de472], 0xffffffca
push ecx
mov ebp, 0xefef29d5
lea ecx, [esi - 7]
inc eax
outsd dx, dword [esi]
je 0x409c40
call 0xa3d58559
jnp 0x409c1e
push ebx
fmul dword ds:[ebx]
popfd
xor ah, dh
xchg esi, eax
cmp ah, byte [ebp - 0x14]
lodsd eax, dword [esi]
je 0x409c55
xor dword [ebp - 0x938d630], edi
inc esi
cmpsd dword [esi], dword es:[edi]
sbb al, 0x77
dec ebx
popfd
xor ch, byte [esi + 0x43e53a57]
mov ebp, 0xf7c729d2
inc edx
cmpsd dword [esi], dword es:[edi]
mov edi, gs
xchg ebp, eax
dec esi
cmp dword [ecx + 0x15594e87], esp
wait
inc eax
mov ah, 0xa1
int3

Function at 0x430002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x40382c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40384d
jl 0x403844
test edi, edi
jne 0x40384d
xor eax, eax
xor edx, edx
jmp 0x40390e
cmp dword [ebx + 0x38], 0
je 0x403862
push eax
push edi
push dword [ebp + 8]
call fcn.00403914
jmp 0x40390e
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4038a9
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4038a9
cmp eax, edi
jb 0x403883
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00405470
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4038af
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x403903
mov ecx, ebx
call fcn.00402f0e
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4038ee
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00409d62
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x403903
jmp 0x4038c1
test edx, edx
je 0x403903
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00409d62
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x4050c0
Capabilities:
Parse pe header

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

Function at 0x40f446
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420458
push 0x420450
push str.FlsAlloc
push 0x1e
call fcn.0040f2b3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f47a
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d140]
call esi
jmp 0x40f480
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40f4c4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420468
push 0x420460
push str.FlsGetValue
push 0x20
call fcn.0040f2b3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f4fb
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x410a13
Capabilities:
Read file on windows

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

Function at 0x410e0d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00405440
mov eax, dword [0x46ad00]
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.0040fa79
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x410e4f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x410fab
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041ae90
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 + 0x46c6e0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00411e04
mov ecx, dword [esi*4 + 0x46c6e0]
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 0x410fa4
cmp eax, dword [edi + ecx + 0x24]
jne 0x410fa4
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 0x410fa4
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00411e04
add esp, 0x14
test edx, edx
jl 0x410fa4
jg 0x410f1a
test eax, eax
jb 0x410fa4
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x410fa4
jl 0x410f34
cmp dword [ebp - 0x1008], eax
ja 0x410fa4
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x410f52
test ebx, ebx
je 0x410f8b
cmp ecx, edi
jae 0x410f8b
mov al, byte [ecx]
cmp al, 0xd
jne 0x410f6c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x410f78
cmp byte [ecx + 1], 0xa
jne 0x410f78
inc ecx
jmp 0x410f78
movzx eax, al
movsx eax, byte [eax + 0x46afb8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x410f52
cmp edx, ebx
jne 0x410f52
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x410fa9
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00404956
leave
ret
Function at 0x4112a2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x46c6e0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4112e2
cmp byte [ebx], 0xa
jne 0x4112e2
or byte [eax + edi + 0x28], 4
jmp 0x4112e7
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4113e5
mov al, byte [edx]
cmp al, 0x1a
je 0x4113c7
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x411316
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41133b
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x411345
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4112f8
jmp 0x4113e5
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4113c2
cmp dword [ebp - 0xc], 0
je 0x4113c2
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x46c6e0]
test byte [eax + edi + 0x28], 0x48
je 0x41139c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x411387
mov byte [esi], dl
jmp 0x411398
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x46c6e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4113e5
cmp byte [ebp - 1], 0xa
jne 0x4113ab
cmp esi, ebx
jne 0x4113ab
mov byte [esi], 0xa
jmp 0x4113e4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00411e22
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4113e5
mov byte [esi], 0xd
jmp 0x4113e4
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x46c6e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4113e1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4113e5
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret