joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c5ba9
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x1001e237
call fcn.004b436f
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004c3d58
mov eax, dword [0x10026c5c]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], 0x1001fa14
mov ecx, 0x1002a350
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.004c5814
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.004c02d3
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.004b32e7
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.004c0283
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.004c0196
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x5f9a1f
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.005f9bcf
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x5f9b1d
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x5f9ac0
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x5f9b03
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x5f9ad7
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x5f9af2
test al, 0x40
je 0x5f9ae9
mov ecx, dword [edi + 0x20]
jmp 0x5f9af0
test al, 0x80
je 0x5f9b03
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x5f9b03
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x5f9a8f
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x67c1ce
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop word [esp]
call 0x67c217
mov fs, word [esi - 0x71]
add al, 0x24
pop word [esp]
lea esp, [esp + 2]
jmp 0x67beff
rcr dh, 7
jne 0x67c1a9
je 0x67c1b3
scasb al, byte es:[edi]
sub eax, 0xf437c4bd
mov eax, 0x46cbac3e
xchg dword [edx + 0x15e68313], ecx
salc
push ss
add dword [eax - 0x73], 0x89012464
jl 0x67c215
inc eax
mov bh, 0x9e
call fcn.0067c1ff

Function at 0x7915dc
Capabilities:
Execute anti-debugging instructions

Disassembly:
clc
lea esi, [esi + edi]
mov edx, eax
mov dx, 0xea3d
mov byte [esp], bh
rdtsc
jmp 0x791623
xchg dword [esp], edx
xchg dword [esp + 6], esi
lea edx, [ecx - 0xcb]
neg ax
lea esp, [esp + 0xb]
jmp 0x7915c3
not dh
lea esp, [esp]
bswap esi
and ax, 0x6306
mov ax, word [esp]
jmp 0x791609

Function at 0x791c6b
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esi, [esi*4]
xor esi, esi
inc ax
pushal
lea esi, [edx + edx]
mov dl, dh
jmp 0x791bbf
sub esp, 0xe
mov dword [esp + 2], ebp
add esp, 0x11
xchg dx, si
rdtsc
mov eax, dword [esp + 1]
jmp 0x791bd7
jmp 0x791bee

Function at 0x792220
Capabilities:
Execute anti-debugging instructions

Disassembly:
bsr si, cx
mov dx, si
bswap edx
xchg word [esp + 1], si
lea esp, [esp + 2]
jmp 0x79222c
push word [esp + 5]
mov esi, 0x9ead397e
xchg word [esp + 7], si
jmp 0x7921ef
btr edx, esp
push esp
xchg byte [esp], al
shr esi, 0xd
jmp 0x792209
bsf si, ax
add esp, 1
lea edx, [edx*4]
jmp 0x79228c
xchg dword [esp], eax
pop word [esp + 1]
xchg edx, esi
mov al, ah
pop si
rdtsc
jmp 0x79224d
mov dx, 0x7c7f
not edx
lea esi, [eax + 0x4a692cc1]
xchg esi, edx
pop dx
mov dh, 2
jmp 0x79226b

Function at 0x7929e8
Capabilities:
Parse pe header

Disassembly:
push word [esp + 1]
pop word [esp + 3]
push dword [esp + 2]
mov dword [esp + 7], esi
jmp 0x792a40
mov dword [esp + 0xa4], esi
pushal
lea esp, [esp + 0x17]
mov word [esp + 6], sp
jmp 0x792a0d
push dword [esp + 6]
mov word [esp + 6], dx
mov byte [esp + 8], dh
push esp
mov word [esp], dx
jmp 0x792a29

Function at 0x792b7f
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
push edx
mov byte [esp + 1], bh
call fcn.007929e8
mov byte [esp + 3], ah
push word [esp + 3]
lea esp, [esp + 3]
mov dword [esp + 0xa8], edi
jmp 0x792ae3
lea esp, [esp + 0x22]
lea esp, [esp]
pushal
push dword [esp + 0x18]
lea esp, [esp + 1]
mov dword [esp + 0x94], ebp
jmp 0x792a03
push eax
jmp fcn.00792017
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
jmp 0x792a74
lea esp, [esp + 0xa8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
jmp 0x792a9f
fidivr word [edi]
les ecx, [ebx - 0x25]
mov esi, 0x796ea94d
pop eax
mov ebx, 0x2474ff66
pop es
pushal
mov byte [esp + 0x17], ch
pop word [esp + 0xd]
lea esp, [esp + 5]
jmp 0x792a5b
push esp
call 0x792b7f
out 0x61, eax
int1
nop
arpl word [edi + 0x5730a227], cx
mov byte [0x77e76b4b], al
adc ah, cl
or eax, 0xe98e1893
sbb byte [edi - 0x731a8a01], bh
jg 0x792b73
out dx, eax
hlt
mov dword [esp + 5], ecx
push esp
mov dword [esp + 0x74], esp
jmp 0x792ba6
Function at 0x4040bf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push esi
push edi
mov edi, dword [ebx]
lea esi, [edx + 0x1000]
mov dword [ebp - 4], 0x10
xor ecx, dword [esi]
mov dword [ebp - 8], ecx
call fcn.0040408c
xor eax, edi
mov edi, dword [ebp - 8]
add esi, 4
dec dword [ebp - 4]
mov ecx, eax
jne 0x4040da
mov eax, dword [edx + 0x1040]
xor eax, ecx
mov ecx, dword [edx + 0x1044]
mov edx, dword [ebp + 8]
xor ecx, edi
pop edi
mov dword [edx], ecx
mov dword [ebx], eax
pop esi
leave
ret

Function at 0x40410e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push esi
push edi
mov edi, dword [ebx]
lea esi, [edx + 0x1044]
mov dword [ebp - 4], 0x10
xor ecx, dword [esi]
mov dword [ebp - 8], ecx
call fcn.0040408c
xor eax, edi
mov edi, dword [ebp - 8]
sub esi, 4
dec dword [ebp - 4]
mov ecx, eax
jne 0x404129
mov eax, dword [edx + 0x1004]
xor eax, ecx
mov ecx, dword [edx + 0x1000]
mov edx, dword [ebp + 8]
xor ecx, edi
pop edi
mov dword [edx], ecx
mov dword [ebx], eax
pop esi
leave
ret
Function at 0x428360
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xf8
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x78]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + 0x20]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x1c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], 0
jmp 0x4283cc
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
cmp eax, dword [edx + 0x18]
jae 0x428413
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.0043fd12
add esp, 8
test eax, eax
jne 0x428411
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x428415
jmp 0x4283c3
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4326fa
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x43270a
xor eax, eax
jmp 0x4328d3
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x43288b
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x4674e4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x4674e4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x4674e4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x4674e4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x4674e4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x4674e4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x4674e4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x4674e4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 8
mov dword [ebp + 0x10], ecx
jmp 0x432713
cmp dword [ebp + 0x10], 0
je 0x4328cd
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x4674e4]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
cmp dword [ebp + 0x10], 0
jne 0x432891
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x402000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x70
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x4027f0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov word [ebp - 0x42], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x30]
jae 0x40219f
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x68]
mov dword [esp], eax
call fcn.00402850
sub esp, 4
cmp dword [ebp + 8], 0
jbe 0x402164
cmp dword [ebp + 0xc], 3
jbe 0x402164
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x10], 0
mov eax, esp
lea ecx, [ebp - 0x68]
mov dword [eax], ecx
mov dword [eax + 4], 0x14d
call fcn.00401e70
mov dword [ebp - 0x74], eax
jmp 0x402103
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x40215f
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp + 0xc]
jne 0x40215a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x24]
mov ecx, dword [ebp - 0x48]
shl ecx, 1
add eax, ecx
mov ax, word [eax]
mov word [ebp - 0x42], ax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x1c]
movzx ecx, word [ebp - 0x42]
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x70], 2
jmp 0x402174
jmp 0x40215f
jmp 0x402164
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x68]
call fcn.00402910
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x402191
jmp 0x40218c
jmp 0x40219f
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x402098
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
add eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4021e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x466e00], eax
pop esi
pop edi
pop ebp
ret
Function at 0x406252
Capabilities:
Parse pe header

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

Function at 0x407eb8
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 0x407ed9
jl 0x407ed0
test edi, edi
jne 0x407ed9
xor eax, eax
xor edx, edx
jmp 0x407f9a
cmp dword [ebx + 0x38], 0
je 0x407eee
push eax
push edi
push dword [ebp + 8]
call fcn.00407fa0
jmp 0x407f9a
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x407f35
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x407f35
cmp eax, edi
jb 0x407f0f
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00409170
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 0x407f3b
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x407f8f
mov ecx, ebx
call fcn.004075a4
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x407f7a
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004100b5
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 0x407f8f
jmp 0x407f4d
test edx, edx
je 0x407f8f
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004100b5
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 0x413e35
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x413ed2
push ebx
push esi
call fcn.00413dfe
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00413d47
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x413e7f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x413ed1
push edi
push eax
call fcn.00412b9b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x413e9f
call fcn.00412be9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x413ed0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00413d47
add esp, 0x20
test eax, eax
jne 0x413ebe
push edi
call fcn.00412be9
jmp 0x413ec6
push ebx
call fcn.00412be9
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4146fe
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4238c0
push 0x4238b8
push str.FlsAlloc
push 0x1e
call fcn.0041456b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x414732
push dword [ebp + 8]
mov ecx, esi
call dword [0x420160]
call esi
jmp 0x414738
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41477c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4238d0
push 0x4238c8
push str.FlsGetValue
push 0x20
call fcn.0041456b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4147b3
push dword [ebp + 8]
mov ecx, esi
call dword [0x420160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x418db6
Capabilities:
Read file on windows

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

Function at 0x4191b0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0041f6e0
mov eax, dword [0x42e174]
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.00417e1c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4191f2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41934e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041f710
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 + 0x42fb40]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041a1a7
mov ecx, dword [esi*4 + 0x42fb40]
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 0x419347
cmp eax, dword [edi + ecx + 0x24]
jne 0x419347
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 0x419347
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a1a7
add esp, 0x14
test edx, edx
jl 0x419347
jg 0x4192bd
test eax, eax
jb 0x419347
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x419347
jl 0x4192d7
cmp dword [ebp - 0x1008], eax
ja 0x419347
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4192f5
test ebx, ebx
je 0x41932e
cmp ecx, edi
jae 0x41932e
mov al, byte [ecx]
cmp al, 0xd
jne 0x41930f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41931b
cmp byte [ecx + 1], 0xa
jne 0x41931b
inc ecx
jmp 0x41931b
movzx eax, al
movsx eax, byte [eax + 0x42e900]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4192f5
cmp edx, ebx
jne 0x4192f5
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41934c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040669c
leave
ret
Function at 0x419645
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 + 0x42fb40]
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 0x419685
cmp byte [ebx], 0xa
jne 0x419685
or byte [eax + edi + 0x28], 4
jmp 0x41968a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x419788
mov al, byte [edx]
cmp al, 0x1a
je 0x41976a
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4196b9
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4196de
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4196e8
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 0x41969b
jmp 0x419788
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 0x419765
cmp dword [ebp - 0xc], 0
je 0x419765
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x42fb40]
test byte [eax + edi + 0x28], 0x48
je 0x41973f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41972a
mov byte [esi], dl
jmp 0x41973b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42fb40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x419788
cmp byte [ebp - 1], 0xa
jne 0x41974e
cmp esi, ebx
jne 0x41974e
mov byte [esi], 0xa
jmp 0x419787
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041a1c5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x419788
mov byte [esi], 0xd
jmp 0x419787
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x42fb40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419784
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419788
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret