joyce8/EMBER2024-capa huggingface dataset:
Function at 0xbd8e80
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push edi
push esi
mov eax, dword [ecx]
cmp eax, 0x270
jne 0xbd8ee5
mov esi, dword [ecx + 4]
mov eax, 0xfffff640
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
and esi, 0x80000000
mov edi, dword [ecx + eax + 0x9c8]
mov edx, edi
and edx, 0x7ffffffe
or edx, esi
mov esi, edi
and edi, 1
neg edi
and edi, 0x9908b0df
xor edi, dword [ecx + eax + 0xff8]
shr edx, 1
xor edi, edx
mov dword [ecx + eax + 0x1384], edi
add eax, 4
jne 0xbd8ea0
mov eax, 0x270
jmp 0xbd8fc7
cmp eax, 0x4e0
jb 0xbd8fc7
mov esi, dword [ecx + 0x9c4]
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
and esi, 0x80000000
mov edi, dword [ecx + eax*4 + 0x9c8]
mov edx, edi
and edx, 0x7ffffffe
or edx, esi
shr edx, 1
mov esi, edi
and edi, 1
neg edi
and edi, 0x9908b0df
xor edi, dword [ecx + eax*4 + 0xff8]
xor edi, edx
mov dword [ecx + eax*4 + 4], edi
inc eax
cmp eax, 0xe3
jne 0xbd8f00
mov esi, dword [ecx + 0xd50]
xor eax, eax
jmp 0xbd8f71
and esi, 0x80000000
or edi, esi
shr edi, 1
xor edi, dword [ecx + eax*4 + 4]
xor edi, ebx
mov dword [ecx + eax*4 + 0x390], edi
inc eax
mov esi, edx
cmp eax, 0x18c
je 0xbd8f93
mov edx, dword [ecx + eax*4 + 0xd54]
mov edi, edx
and edi, 0x7fffffff
mov ebx, edx
xor ebx, 0x7ffffffe
and ebx, edi
je 0xbd8f50
mov ebx, 0x9908b0df
jmp 0xbd8f50
mov esi, 0x80000000
and esi, dword [ecx + 0x1380]
mov eax, dword [ecx + 4]
mov edx, eax
and edx, 0x7ffffffe
or edx, esi
and eax, 1
neg eax
and eax, 0x9908b0df
xor eax, dword [ecx + 0x634]
shr edx, 1
xor eax, edx
mov dword [ecx + 0x9c0], eax
xor eax, eax
lea edx, [eax + 1]
mov dword [ecx], edx
mov eax, dword [ecx + eax*4 + 4]
mov edx, eax
shr edx, 0xb
mov esi, edx
not esi
or esi, dword [ecx + 0x1384]
add edx, esi
inc edx
xor edx, eax
mov ecx, edx
shl ecx, 7
and ecx, 0x9d2c5680
xor ecx, edx
mov edx, ecx
shl edx, 0xf
and edx, 0xefc60000
xor edx, ecx
mov eax, edx
shr eax, 0x12
and ecx, eax
or eax, edx
xor eax, ecx
pop esi
pop edi
pop ebx
ret
Function at 0xbeb020
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push eax
test edi, edi
sets bl
mov esi, edi
sub esi, 1
sete bh
or bl, bh
mov esi, edi
sub esi, 0x25
setge bh
or bl, bh
test bl, 1
jne 0xbeb054
jmp 0xbeb059
jmp 0xbeb1e8
mov esi, ecx
add esi, edx
add esi, 0xffffffff
mov byte [ecx + edx - 1], 0
cmp eax, 0
jne 0xbeb078
mov ecx, esi
add ecx, 0xffffffff
mov byte [esi - 1], 0x30
jmp 0xbeb1e8
cmp edi, 0xa
jne 0xbeb106
jmp 0xbeb083
cmp eax, 0x64
jb 0xbeb0c2
mov edi, 0x64
mov ecx, eax
mov eax, ecx
xor edx, edx
div edi
shl edx, 1
mov al, byte [edx + 0xc112bd]
mov edi, esi
add edi, 0xffffffff
mov byte [esi - 1], al
mov al, byte [edx + 0xc112bc]
add edi, 0xffffffff
mov byte [esi - 2], al
mov esi, 0x64
mov eax, ecx
xor edx, edx
div esi
mov esi, edi
jmp 0xbeb083
cmp eax, 0xa
setb cl
jmp 0xbeb0ca
test cl, 1
jne 0xbeb0d1
jmp 0xbeb0df
mov al, byte [eax + 0xc11b88]
add esi, 0xffffffff
mov byte [esi], al
jmp 0xbeb0ff
shl eax, 1
mov cl, byte [eax + 0xc112bd]
mov edx, esi
add edx, 0xffffffff
mov byte [esi - 1], cl
mov al, byte [eax + 0xc112bc]
add edx, 0xffffffff
mov byte [esi - 2], al
mov esi, edx
mov ecx, esi
jmp 0xbeb1e8
cmp edi, 0x10
sete cl
test cl, 1
jne 0xbeb118
jmp 0xbeb113
jmp 0xbeb1be
jmp 0xbeb11a
cmp eax, 0x100
jb 0xbeb14e
mov ecx, eax
and ecx, 0xff
shl ecx, 1
mov dl, byte [ecx + 0xc11386]
mov edi, esi
add edi, 0xffffffff
mov byte [esi - 1], dl
mov cl, byte [ecx + 0xc11385]
add edi, 0xffffffff
mov byte [esi - 2], cl
shr eax, 8
mov esi, edi
jmp 0xbeb11a
cmp eax, 0x10
setb cl
test cl, 1
jne 0xbeb15b
jmp 0xbeb16c
mov al, byte [eax + 0xc11b88]
mov ecx, esi
add ecx, 0xffffffff
mov byte [esi - 1], al
jmp 0xbeb1e8
mov ecx, eax
and ecx, 0xffffffff
shl ecx, 1
mov edx, eax
add edx, 0xffffffff
sub edx, ecx
or edx, 0xfffffffd
add edx, 3
mov ecx, eax
and ecx, 0xfffffffd
imul ecx, edx
mov edx, eax
and edx, 2
or eax, 2
imul eax, edx
mov edx, eax
and edx, ecx
shl edx, 1
xor eax, ecx
add eax, edx
mov dl, byte [eax + 0xc11386]
mov ecx, esi
add ecx, 0xffffffff
mov byte [esi - 1], dl
mov al, byte [eax + 0xc11385]
add ecx, 0xffffffff
mov byte [esi - 2], al
jmp 0xbeb1e8
cmp eax, 0
jbe 0xbeb1e4
mov ecx, eax
mov eax, ecx
xor edx, edx
div edi
mov al, byte [edx + 0xc11b88]
mov ebx, esi
add ebx, 0xffffffff
mov byte [esi - 1], al
mov eax, ecx
xor edx, edx
div edi
mov esi, ebx
jmp 0xbeb1be
mov ecx, esi
jmp 0xbeb1e8
mov eax, ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0xbf3c90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1dec
call fcn.00bd8500
push eax
sub esp, 0x3fc
mov dword [ebp - 0x1c], esp
push eax
mov dword [ebp - 0x28], esp
sub esp, 0x14
mov ebx, esp
sub esp, 0x14
mov esi, esp
sub esp, 0x24
mov dword [ebp - 0x30], esp
mov dword [ebp - 0x1df6], 0x32833093
mov dword [ebp - 0x1df2], 0x36723476
mov dword [ebp - 0x1dee], 0x2a9a288e
mov dword [ebp - 0x1dea], 0x2e9f2c9f
mov dword [ebp - 0x1de6], 0x228d2086
mov dword [ebp - 0x1de2], 0x26962496
mov dword [ebp - 0x1dde], 0x1aab1862
mov word [ebp - 0x1dda], 0x1c1b
xor eax, eax
nop
movzx edx, byte [ebp + eax - 0x1df6]
lea ecx, [eax - 0x12fa17f9]
xor ecx, edx
mov edx, ecx
xor edx, 0x11
and ecx, 0x6e
add ecx, ecx
sub ecx, edx
add cl, 0xd9
mov byte [ebp + eax - 0x1df6], cl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 0x1e
jb 0xbf3d10
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x1df6]
push 0
push 0
push 0x20019
push eax
mov dword [ebp - 0x14], ecx
push ecx
call fcn.00c0e590
add esp, 0x14
shr eax, 0x1f
jmp dword [eax*4 + 0xc15838]
Function at 0xee3890
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ecx + ebx], 0
lea ebx, [ebx + 2]
jne 0xee38b0
lea esi, [ebx - 2]
mov dword [esp + 6], 0x99878716
mov byte [esp + 0xa], 0
xor edx, edx
nop
nop
nop
nop
mov eax, edx
add al, 0xed
xor al, byte [esp + edx + 6]
add al, 0x98
mov byte [esp + edx + 6], al
inc edx
cmp edx, 5
jne 0xee38d0
cmp ebx, 2
je 0xee390b
mov edi, dword [esp + 6]
mov eax, esi
mov edx, esi
sar edx, 1
mov dword [esp + 0xc], edx
mov edx, edi
not edi
test al, 2
jne 0xee3912
mov eax, edx
cmp ebx, 4
jne 0xee3947
jmp 0xee3996
mov esi, ebp
jmp 0xee3996
dec dword [esp + 0xc]
movzx esi, word [ecx]
add ecx, 2
xor esi, ebp
mov ebp, esi
and ebp, edi
mov dword [esp], ebp
mov ebp, esi
not ebp
and ebp, edx
imul ebp, dword [esp]
mov eax, esi
and eax, edx
mov dword [esp], eax
mov eax, edx
or esi, edx
imul esi, dword [esp]
add esi, ebp
mov ebp, esi
cmp ebx, 4
je 0xee3996
mov edx, eax
xor ebx, ebx
mov esi, ebp
nop
nop
nop
movzx ebp, word [ecx + ebx*2]
xor ebp, esi
mov eax, ebp
and eax, edi
mov esi, ebp
not esi
and esi, edx
imul esi, eax
mov eax, ebp
and eax, edx
or ebp, edx
imul ebp, eax
add ebp, esi
movzx esi, word [ecx + ebx*2 + 2]
xor esi, ebp
mov eax, esi
and eax, edi
mov ebp, esi
not ebp
and ebp, edx
imul ebp, eax
mov eax, esi
and eax, edx
or esi, edx
imul esi, eax
add esi, ebp
add ebx, 2
cmp dword [esp + 0xc], ebx
jne 0xee3950
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0xee9490
Capabilities:
Encode data using xor

Disassembly:
push eax
mov dword [esp], 0xa6a5a473
xor eax, eax
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0x7b
xor cl, byte [esp + eax]
add cl, 0x28
mov byte [esp + eax], cl
inc eax
cmp eax, 4
jne 0xee94a0
mov eax, dword [esp]
mov eax, dword fs:[eax]
pop ecx
ret

Function at 0xee9870
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [esp + 0x40]
movzx eax, word [eax]
mov dword [esp + 2], 0x5d5ca197
mov word [esp + 6], 0
xor ecx, ecx
nop
mov edx, ecx
add dl, 0xa
xor dl, byte [esp + ecx + 2]
add dl, 0xb0
mov byte [esp + ecx + 2], dl
inc ecx
cmp ecx, 6
jne 0xee9890
xor ecx, ecx
cmp dword [esp + 2], eax
setne cl
xor eax, eax
jmp dword [ecx*4 + 0xc18670]

Function at 0xeea620
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [esp], 0x10111213
xor eax, eax
nop
nop
nop
nop
nop
mov ecx, eax
or cl, 0x4c
xor cl, byte [esp + eax]
add cl, 0xa0
mov byte [esp + eax], cl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 4
jb 0xeea640
mov eax, dword [esp]
mov edx, dword [0xc1aea0]
test edx, edx
je 0xeea6b8
xor ebx, ebx
mov ecx, dword [0xc1aea4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ecx + ebx*8], 0xa269eeef
je 0xeea690
inc ebx
cmp edx, ebx
jne 0xeea680
jmp 0xeea6b8
mov edx, dword [ecx + ebx*8 + 4]
cmp edx, eax
je 0xeea6b8
mov eax, esp
lea ecx, [esp + 0x1c]
push 5
push 0x18
push eax
push ecx
push dword [ebp + 8]
push 0x14
push edx
push dword [0xc1aea8]
call fcn.00ee7da0
add esp, 0x20
test edi, edi
je 0xeea6c2
mov ecx, dword [esp + 8]
mov dword [edi], ecx
test esi, esi
je 0xeea6ce
cmp byte [esp + 0x15], 0
setne byte [esi]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x410370
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
jmp 0x41038a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x410391
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x410380
mov eax, 1
add ebx, ebx
jne 0x4103a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x410398
jne 0x4103b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x410398
xor ecx, ecx
sub eax, 3
jb 0x4103c8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41043a
mov ebp, eax
add ebx, ebx
jne 0x4103d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4103e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x410404
inc ecx
add ebx, ebx
jne 0x4103f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4103e5
jne 0x410401
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4103e5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x410424
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x410415
jmp 0x410386
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x410424
add edi, ecx
jmp 0x410386
pop esi
mov edi, esi
mov ecx, 0x277
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x410442
cmp byte [edi], 5
jne 0x410442
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 0x410447
lea edi, [esi + 0xe000]
mov eax, dword [edi]
or eax, eax
je 0x4104b6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x128f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12944]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x410474
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12948]
or eax, eax
je 0x4104b0
mov dword [ebx], eax
add ebx, 4
jmp 0x410491
call dword [esi + 0x12958]
mov ebp, dword [esi + 0x1294c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
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 0x4104ea
sub esp, 0xffffff80
jmp 0x4027e0

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x40893e
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
mov ecx, dword [esp]
add esp, 4
call fcn.00408964
mov ebx, edi
inc ebx
xor dword [eax], ecx
mov edi, edi
inc eax
mov ebx, edi
push 0xfb222940
pop edi
cmp eax, esi
jne fcn.0040893e
dec ebx
ret
Function at 0x4041b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40420b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40420b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4041f8
cmp esi, edx
jae 0x40420b
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4041e6
cmp esi, edx
jae 0x40420b
xor eax, eax
cmp word [esi], ax
pop edi
cmove esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x408820
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x445014]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword fs:[0x2c]
movaps xmm0, xmmword [0x440b50]
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x2c], 0xb6493bc0
mov ecx, dword [eax]
movaps xmm0, xmmword [0x440970]
mov eax, dword [0x447810]
movups xmmword [esp + 0x1c], xmm0
mov dword [esp + 0x30], 0xa79d7159
cmp eax, dword [ecx + 4]
jle 0x4088d1
push 0x447810
call fcn.004127a2
add esp, 4
cmp dword [0x447810], 0xffffffff
jne 0x4088d1
xorps xmm0, xmm0
mov byte [0x4470c0], 1
movlpd qword [esp], xmm0
mov edx, dword [esp + 4]
mov eax, dword [esp]
nop dword [eax]
mov cl, byte [esp + eax + 0xc]
mov byte [eax + 0x447098], cl
add eax, 1
adc edx, 0
jne 0x4088b7
cmp eax, 0x28
jb 0x4088a0
push 0x433d80
call fcn.00412ae4
add esp, 4
push 0x447810
call fcn.00412758
add esp, 4
mov ecx, dword [esp + 0x34]
mov eax, 0x447098
xor ecx, esp
call fcn.00412680
mov esp, ebp
pop ebp
ret

Function at 0x4088f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x445014]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword fs:[0x2c]
movaps xmm0, xmmword [0x440c50]
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x2c], 0xf96612c1
mov ecx, dword [eax]
movaps xmm0, xmmword [0x440b70]
mov eax, dword [0x447644]
movups xmmword [esp + 0x1c], xmm0
mov dword [esp + 0x30], 0xa79d3842
cmp eax, dword [ecx + 4]
jle 0x4089a1
push 0x447644
call fcn.004127a2
add esp, 4
cmp dword [0x447644], 0xffffffff
jne 0x4089a1
xorps xmm0, xmm0
mov byte [0x4474e8], 1
movlpd qword [esp], xmm0
mov edx, dword [esp + 4]
mov eax, dword [esp]
nop dword [eax]
mov cl, byte [esp + eax + 0xc]
mov byte [eax + 0x4474c0], cl
add eax, 1
adc edx, 0
jne 0x408987
cmp eax, 0x28
jb 0x408970
push 0x433d00
call fcn.00412ae4
add esp, 4
push 0x447644
call fcn.00412758
add esp, 4
mov ecx, dword [esp + 0x34]
mov eax, 0x4474c0
xor ecx, esp
call fcn.00412680
mov esp, ebp
pop ebp
ret
Function at 0x40f466
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0040f442
pop esi
leave
ret 8

Function at 0x410601
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 0x410622
jl 0x410619
test edi, edi
jne 0x410622
xor eax, eax
xor edx, edx
jmp 0x4106e3
cmp dword [ebx + 0x38], 0
je 0x410637
push eax
push edi
push dword [ebp + 8]
call fcn.004106e9
jmp 0x4106e3
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x41067e
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x41067e
cmp eax, edi
jb 0x410658
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00413cc0
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 0x410684
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4106d8
mov ecx, ebx
call fcn.0040fe69
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4106c3
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0041be38
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 0x4106d8
jmp 0x410696
test edx, edx
je 0x4106d8
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0041be38
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 0x413405
Capabilities:
Parse pe header

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

Function at 0x42349e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x439308
push 0x439300
push str.FlsAlloc
push 0x1f
call fcn.00423309
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4234d2
push dword [ebp + 8]
mov ecx, esi
call dword [0x43516c]
call esi
jmp 0x4234d8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x42351c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x439318
push 0x439310
push str.FlsGetValue
push 0x21
call fcn.00423309
mov esi, eax
add esp, 0x10
test esi, esi
je 0x423553
push dword [ebp + 8]
mov ecx, esi
call dword [0x43516c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42355b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x439320
push 0x439318
push str.FlsSetValue
push 0x22
call fcn.00423309
mov esi, eax
add esp, 0x10
test esi, esi
je 0x423595
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43516c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x425848
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00413670
mov eax, dword [0x445014]
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.00422d0f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42588a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4259e6
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004314f0
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 + 0x446c38]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00426a1e
mov ecx, dword [esi*4 + 0x446c38]
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 0x4259df
cmp eax, dword [ecx + edi + 0x24]
jne 0x4259df
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 0x4259df
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00426a1e
add esp, 0x14
test edx, edx
jl 0x4259df
jg 0x425955
test eax, eax
jb 0x4259df
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4259df
jl 0x42596f
cmp dword [ebp - 0x1008], eax
ja 0x4259df
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42598d
test ebx, ebx
je 0x4259c6
cmp ecx, edi
jae 0x4259c6
mov al, byte [ecx]
cmp al, 0xd
jne 0x4259a7
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4259b3
cmp byte [ecx + 1], 0xa
jne 0x4259b3
inc ecx
jmp 0x4259b3
movzx eax, al
movsx eax, byte [eax + 0x4452a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42598d
cmp edx, ebx
jne 0x42598d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4259e4
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00412680
leave
ret
Function at 0x425eb6
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 + 0x446c38]
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 0x425ef6
cmp byte [ebx], 0xa
jne 0x425ef6
or byte [edi + eax + 0x28], 4
jmp 0x425efb
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 0x425ffa
mov dl, byte [eax]
cmp dl, 0x1a
je 0x425fdd
inc eax
cmp dl, 0xd
je 0x425f27
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x425f4d
cmp eax, ecx
jae 0x425f5b
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 0x425f0f
jmp 0x425ffa
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 0x425fd8
cmp dword [ebp - 0x10], 0
je 0x425fd8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x446c38]
test byte [eax + edi + 0x28], 0x48
je 0x425fb2
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x425f9d
mov byte [esi], dl
jmp 0x425fae
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x446c38]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x425ffa
cmp byte [ebp - 1], 0xa
jne 0x425fc1
cmp esi, ebx
jne 0x425fc1
mov byte [esi], 0xa
jmp 0x425ff9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00426a3c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x425ffa
mov byte [esi], 0xd
jmp 0x425ff9
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x446c38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x425ff7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x425ffa
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret