joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100fe81d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [0x1010086f]
mov esi, 0xe
lea edi, [ebp - 0x2c]
mov ebx, dword [0x101f5c1c]
add ebx, 0x1e99
mov dword [0x101f5c1c], ebx
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 0xe
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], esi
call fcn.100fe604
mov eax, dword [0x101f5c1c]
add eax, 0xfffffc44
mov dword [0x101f5c20], eax
mov dword [0x101f5c1c], 0x6c2
call fcn.100fee24
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
call fcn.100fe481
xor ecx, ecx
mov dword [0x101f5c1c], 0x236d
cmp eax, 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
je 0x100fe96a
mov eax, dword [ebp - 0x40]
mov dword [0x101f5c1c], 0x1258
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov ecx, dword [0x101f5c1c]
add ecx, 0x194b
mov dword [0x101f5c20], ecx
mov dword [esp], eax
mov ecx, dword [ebp - 0x30]
mov dword [esp + 4], ecx
mov dword [ebp - 0x48], eax
call fcn.100fed13
xor eax, eax
mov ecx, dword [ebp - 0x48]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x20], ecx
mov dword [0x101f5c1c], 0x341
mov ecx, dword [ebp - 0x48]
mov dword [edx + 0x38], ecx
cmp ecx, 0
mov dword [ebp - 0x44], eax
je 0x100fe96a
mov eax, dword [ebp - 0x48]
add eax, 0x1389
mov dword [0x101f5c20], 0x1ddf
mov dword [0x101f5c1c], 0xffffefc9
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100fe9c8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
mov ecx, dword [0x101f5c1c]
add ecx, 0xffffea42
mov dword [0x101f5c20], ecx
mov dword [ebp - 0x10], eax
call fcn.100ff5c7
mov ecx, eax
mov edx, dword [eax + 0x3c]
mov dword [0x101f5c1c], 0x1516
mov eax, dword [eax + edx + 0x78]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [0x101f5c1c], 0x11d0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
add ecx, dword [ecx + edx + 0x20]
mov dword [0x101f5c20], 0x6c2
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + edx + 0x18]
cmp edi, 0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
je 0x100feb57
mov eax, dword [ebp - 0x18]
add eax, 0x24
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov dword [ebp - 0x28], ecx
mov eax, 0xffffefb4
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
add edx, dword [esi]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
xor esi, esi
mov edi, dword [ebp - 0x20]
mov ebx, dword [edi + eax*4]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], esi
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov edx, dword [ebp - 0x44]
add ecx, edx
mov esi, dword [ebp - 0x14]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x4d], bh
mov byte [ebp - 0x4e], cl
je 0x100feadc
mov eax, dword [ebp - 0x4c]
add eax, 1
mov cl, byte [ebp - 0x4d]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x4e]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x48], eax
jne 0x100fea8b
mov al, byte [ebp - 0x4e]
test al, 1
jne 0x100feb21
jmp 0x100feae5
mov dword [0x101f5c1c], 0x10da
mov eax, 0xffffeebe
xor ecx, ecx
mov edx, dword [ebp - 0x38]
add edx, 1
mov esi, dword [ebp - 0x3c]
add esi, 2
mov edi, dword [ebp - 0x1c]
cmp edx, edi
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], ecx
jb 0x100fea6b
jmp 0x100feb57
mov eax, dword [ebp - 0x3c]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x40]
mov dword [0x101f5c20], edx
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
add esi, dword [esi + edi + 0x1c]
shl ecx, 2
add esi, ecx
mov dword [ebp - 0x54], esi
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x54]
add eax, dword [ecx]
mov dword [0x101f5c1c], 0x1a69
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100ff277
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x101f5c20], 0x26bd
mov dword [0x101f5c1c], 0xe95
mov edx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
lea edx, section..data
imul esi, eax, 0xc8
mov edi, edx
add edi, esi
add edi, 0x84
mov esi, dword [edi]
imul edi, eax, 0xc8
add edx, edi
add edx, 0x3c
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x1a9
mov ecx, edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
jne 0x100ff2a4
lea eax, [0x1010086f]
mov ecx, 0xe
lea edx, [ebp - 0x2c]
mov dword [0x101f5c20], 0x130b
mov dword [0x101f5c1c], 0x1346
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], ecx
call fcn.100fe604
mov dword [0x101f5c20], 0xb5d
mov dword [0x101f5c1c], 0x6c2
call fcn.100fee24
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], eax
call fcn.100fe481
mov ecx, eax
mov dword [0x101f5c3c], eax
mov eax, esp
mov edx, dword [ebp - 0x3c]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
lea edx, section..data
imul esi, eax, 0xc8
mov edi, edx
add edi, esi
add edi, 0x84
mov esi, dword [edi]
imul edi, eax, 0xc8
mov ebx, edx
add ebx, edi
mov edi, dword [ebx]
imul ebx, eax, 0xc8
add edx, ebx
add edx, 0x3c
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x48]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], edx
call fcn.100ff493
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
add eax, ecx
mov edx, dword [ebp - 0x54]
add edx, 1
cmp edx, 0x1a9
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], edx
jne 0x100ff387
mov dword [0x101f5c20], 0x9b1
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 8], ecx
call fcn.100feb62
xor eax, eax
mov ecx, dword [ebp - 0x48]
add ecx, 0x632e7
mov edx, dword [ebp - 0x30]
mov dword [edx], ecx
mov ecx, dword [0x101f5c1c]
add ecx, 0x183c
mov dword [0x101f5c1c], ecx
mov dword [edx + 4], 0x152000
mov dword [0x101f5c20], 0x13e1
mov ecx, dword [ebp - 0x48]
add ecx, 0x48cc6
mov dword [edx + 8], ecx
mov ecx, dword [0x101f5c1c]
add ecx, 0x1510
mov dword [0x101f5c1c], ecx
mov dword [edx + 0xc], 0x20a0
mov ecx, dword [0x101f5c20]
add ecx, 0xfffff7d7
mov dword [0x101f5c20], ecx
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100ff740
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov ebx, 0x4207
mov dword [0x101f5c24], 0
mov dword [0x101f5c28], 0
mov dword [0x101f5c34], 0
mov dword [0x101f5c20], 0x222c
mov dword [0x101f5c1c], 0x4207
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov eax, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edi
je 0x100ff8e4
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov edi, 0x100
add ecx, 0xfffff351
mov dword [0x101f5c1c], ecx
add edx, 1
mov dword [ebp - 0x30], eax
mov eax, edx
cdq
idiv edi
mov dword [0x101f5c24], edx
mov ecx, dword [ebp - 0x24]
movzx ebx, byte [ecx + edx]
add ebx, esi
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv edi
mov dword [0x101f5c28], edx
mov dword [0x101f5c1c], 0x1bda
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x101f5c2c], cl
mov dword [0x101f5c1c], 0x297
mov edi, dword [ebp - 0x24]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov dword [0x101f5c1c], 0x2f0
mov cl, byte [0x101f5c2c]
mov edx, dword [0x101f5c28]
mov byte [edi + edx], cl
mov edx, dword [0x101f5c24]
movzx edx, byte [edi + edx]
mov ebx, dword [0x101f5c28]
movzx ebx, byte [edi + ebx]
add ebx, edx
mov dword [0x101f5c20], 0xffffe4ab
and ebx, 0xff
mov dword [0x101f5c34], ebx
mov dword [0x101f5c1c], 0x1696
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x30]
mov ch, byte [edx + ebx]
mov byte [0x101f5c39], ch
mov byte [0x101f5c3a], cl
xor ch, cl
mov byte [0x101f5c38], ch
mov dword [0x101f5c20], 0xffffef26
mov dword [0x101f5c1c], 0x15f1
mov edx, dword [ebp - 0x20]
mov byte [edx + ebx], ch
add ebx, 1
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x38], ebx
je 0x100ff8e4
mov eax, dword [0x101f5c1c]
mov ecx, dword [0x101f5c24]
mov edx, dword [0x101f5c28]
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esi
jmp 0x100ff7b5
mov dword [0x101f5c20], 0x23ec
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100ff8f6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov esi, esp
mov eax, 0x10
call fcn.100f98e0
mov eax, esp
and eax, 0xfffffff8
mov esp, eax
mov dword [esi + 0x2c], eax
call fcn.1000106e
xor ecx, ecx
cmp eax, 0
mov dword [esi + 0x28], ecx
jne 0x100ffa65
lea eax, [esi + 0x30]
mov dword [esi + 0x24], eax
sub esp, 4
mov eax, dword [esi + 0x2c]
mov dword [esp], eax
call fcn.100ff277
add esp, 4
lea ecx, [0x100fecb6]
mov edx, dword [esi + 0x2c]
mov edi, dword [edx]
mov dword [esi + 0x30], edi
mov dword [0x101f5c20], 0x1082
mov dword [esi + 0x38], 0x152000
mov edi, dword [0x101f5c08]
mov dword [esi + 0x4c], edi
mov edi, dword [0x101f5c0c]
mov dword [esi + 0x6c], edi
mov edi, dword [0x101f5c10]
mov dword [esi + 0x84], edi
mov edi, dword [0x101f5c14]
mov dword [esi + 0x8c], edi
mov edi, dword [0x101f5c18]
mov dword [esi + 0x88], edi
mov dword [0x101f5c1c], 0xffffe113
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [esi + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esi + 0x18], eax
jne 0x100ff9ca
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esi + 0x14], ecx
je 0x100ff9e2
mov eax, dword [esi + 0x18]
add eax, 0xfffff000
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x10]
and eax, 0xfffff000
mov dword [esi + 0x1c], eax
jmp 0x100ff9ab
lea eax, [esi + 0x30]
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x64], ecx
mov dword [0x101f5c1c], 0x1516
mov edx, dword [esi + 0x14]
mov edi, dword [ecx + edx + 0x50]
add eax, 0x48
mov dword [esi + 0xc], edi
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [eax], ecx
mov dword [0x101f5c20], 0x3a6
call fcn.100fe2a9
xor ecx, ecx
cmp eax, 0
mov dword [esi + 4], ecx
jne 0x100ffa5f
lea eax, [esi + 0x30]
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx + 8]
push edx
push eax
call fcn.100fe81d
add esp, 8
mov dword [esi], eax
mov eax, dword [esi]
mov dword [0x101f5c20], 0x2491
sub esp, 4
mov ecx, esp
lea edx, [esi + 0x30]
mov dword [ecx], edx
call eax
mov eax, 1
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x28]
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret

Function at 0x43b644
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop eax
sub ebx, ebx
sub ebx, 1
and ebx, edi
call fcn.0043b681
sub ebx, 0x8f96a7c7
xor dword [ecx], eax
inc edi
add ecx, 1
or ebx, ebx
mov edi, 0x24766d20
cmp ecx, esi
jne fcn.0043b644
dec ebx
mov edi, ebx
add edi, ebx
ret
Function at 0x59350f54
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x59350f63
pop dword [ebp - 0x28]
mov eax, 0x9687da21
sub eax, 0x3d52cabe
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xd5fcf6c2
add dword [ebp - 0x38], 0x78554e89
mov dword [ebp - 0x34], 0xdbe368a7
add dword [ebp - 0x34], 0x564fe39e
mov dword [ebp - 0x30], 0x85e384b5
sub dword [ebp - 0x30], 0x39974087
mov dword [ebp - 0x2c], 0x38446e6e
sub dword [ebp - 0x2c], 0x38446e6e
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xbe57b6f9
add dword [ebp - 0x38], 0xb61ab25d
mov dword [ebp - 0x34], 0xa530102c
sub dword [ebp - 0x34], 0x63c3aeb7
mov dword [ebp - 0x30], 0x95c54352
sub dword [ebp - 0x30], 0x3255d6e6
mov dword [ebp - 0x2c], 0xcdb4518e
add dword [ebp - 0x2c], 0x324bae72
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x2f0a73d1
sub eax, 0xd5d862e5
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3d1d0
push 0
call eax
mov ecx, 0x26561187
sub ecx, 0x2655c796
mov ebx, eax
mov edi, 0x5936c000
add edi, dword [ebp - 0x28]
mov edx, 0xe347ea12
sub edx, 0x1f5ff1fb
xor dword [ebp - 0x20], edx
mov esi, dword [edi]
add dword [ebp - 4], edx
add esi, edx
mov dword [ebp - 0x20], 0xb2c62a3b
mov dword [ebx], esi
xor dword [ebp - 0x10], esi
add ebx, 4
add edi, 4
loop 0x5935107a
add eax, 0x6f83d191
sub eax, 0x6f82b6fa
xor ebx, ebx
add ebx, eax
add eax, 0x37c4b13a
sub eax, 0x37c4b135
mov ecx, 0xf9c10673
add ecx, 0x5f70f98d
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x59352ada
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.vsansi.dll_RegSetValueExW]
ret 8

Function at 0x59352af4
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.vsansi.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.vsansi.dll_RegSetValueExW]
pop esi
ret 0xc

Function at 0x59352b20
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.vsansi.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x59352b2b
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.vsansi.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8
Function at 0x407468
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 0x407489
jl 0x407480
test edi, edi
jne 0x407489
xor eax, eax
xor edx, edx
jmp 0x40754a
cmp dword [ebx + 0x38], 0
je 0x40749e
push eax
push edi
push dword [ebp + 8]
call fcn.00407550
jmp 0x40754a
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4074e5
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4074e5
cmp eax, edi
jb 0x4074bf
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00409a40
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 0x4074eb
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40753f
mov ecx, ebx
call fcn.00406cb7
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40752a
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040fbdd
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 0x40753f
jmp 0x4074fd
test edx, edx
je 0x40753f
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040fbdd
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 0x4090dd
Capabilities:
Parse pe header

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

Function at 0x41728e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4290e0
push 0x4290d8
push str.FlsAlloc
push 0x1f
call fcn.004170f9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4172c2
push dword [ebp + 8]
mov ecx, esi
call dword [0x42517c]
call esi
jmp 0x4172c8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41730c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4290f0
push 0x4290e8
push str.FlsGetValue
push 0x21
call fcn.004170f9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417343
push dword [ebp + 8]
mov ecx, esi
call dword [0x42517c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41734b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4290f8
push 0x4290f0
push str.FlsSetValue
push 0x22
call fcn.004170f9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417385
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42517c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x418a61
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00409250
mov eax, dword [0x430040]
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.00416112
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x418aa3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x418bff
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00423bd0
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 + 0x431950]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00419a5e
mov ecx, dword [esi*4 + 0x431950]
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 0x418bf8
cmp eax, dword [ecx + edi + 0x24]
jne 0x418bf8
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 0x418bf8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00419a5e
add esp, 0x14
test edx, edx
jl 0x418bf8
jg 0x418b6e
test eax, eax
jb 0x418bf8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x418bf8
jl 0x418b88
cmp dword [ebp - 0x1008], eax
ja 0x418bf8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x418ba6
test ebx, ebx
je 0x418bdf
cmp ecx, edi
jae 0x418bdf
mov al, byte [ecx]
cmp al, 0xd
jne 0x418bc0
lea eax, [edi - 1]
cmp ecx, eax
jae 0x418bcc
cmp byte [ecx + 1], 0xa
jne 0x418bcc
inc ecx
jmp 0x418bcc
movzx eax, al
movsx eax, byte [eax + 0x430300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x418ba6
cmp edx, ebx
jne 0x418ba6
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x418bfd
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004082c1
leave
ret
Function at 0x418ef6
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 + 0x431950]
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 0x418f36
cmp byte [ebx], 0xa
jne 0x418f36
or byte [edi + eax + 0x28], 4
jmp 0x418f3b
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 0x41903a
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41901d
inc eax
cmp dl, 0xd
je 0x418f67
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x418f8d
cmp eax, ecx
jae 0x418f9b
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 0x418f4f
jmp 0x41903a
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 0x419018
cmp dword [ebp - 0x10], 0
je 0x419018
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x431950]
test byte [eax + edi + 0x28], 0x48
je 0x418ff2
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x418fdd
mov byte [esi], dl
jmp 0x418fee
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x431950]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41903a
cmp byte [ebp - 1], 0xa
jne 0x419001
cmp esi, ebx
jne 0x419001
mov byte [esi], 0xa
jmp 0x419039
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00419a7c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41903a
mov byte [esi], 0xd
jmp 0x419039
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x431950]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419037
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41903a
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret