joyce8/EMBER2024-capa huggingface dataset:
Function at 0x15bdf76
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp + 0x1c], 0x6b8c6f2e
neg edi
mov ecx, dword [esp + 0x24]
not dword [esp + 0x1c]
or dword [esp + 0x2c], 0x2f2245f2
and dword [esp + 0x38], 0x4177722f
add dword [esp + 0x1c], 0x777a1117
add dword [esp + 8], 0xff9d3ecc
call fcn.013f01e7
nop
mov cx, ss
mov ss, cx
jmp 0x1412fd4
jmp edi
inc eax
xor edx, 0x26373d4d
dec ecx
jmp 0x14ddae8
je 0x13f88d0
push esi
movzx esi, byte [eax]
cmp ah, 0x2d
stc
xor esi, ecx
and esi, 0xff
mov esi, dword [esi*4 + 0xfa9368]
shr ecx, 8
test dh, 0x5d
xor ecx, esi
jmp 0x1508209
setae cl
push edi
lea eax, [eax + esi - 0x3123be7]
test word [esp + 0x18], si
jg 0x15a5a8d
test ebx, ebx
clc
test ecx, ecx
jmp 0x15da168
dec edx
jne 0x1345317
pop esi
ror dl, cl
not ecx
xadd dl, dl
mov dword [ebp], ecx
cwd
ror dx, 0x88
btc edx, 0x93
lea esi, [esi - 4]
mov edx, dword [esi]
cmc
test di, 0x6489
xor edx, ebx
stc
cmc
cmp esp, ebp
neg edx
cmp cx, bp
not edx
clc
xor edx, 0x4f6b3cad
jmp 0x1541ad5
shr edx, 8
xor edx, esi
jmp 0x133c959
call fcn.013fdd30
jne 0x15da177
pop esi
shr eax, 0x1b
not edx
add eax, esp
shrd eax, edi, 0xd3
mov dword [esi], edx
bts eax, esp
lahf
mov eax, dword [ebp]
cmc
cmp bp, 0x207a
lea ebp, [ebp + 4]
stc
xor eax, ebx
jmp 0x15c084c
inc eax
test cl, ah
cmp si, si
cmc
xor ecx, 0x1b6168ba
jmp 0x13f88c6
add edi, edx
jmp 0x15b16dc
not edx
test edi, edx
xor ebx, edx
test si, 0xb6f
jmp 0x1516af8
cmp byte [esp + 8], 0x87
mov ebx, eax
call fcn.013aedf7
xor dword [esp + 0x1c], ecx
jno 0x12e8569
movsb byte es:[edi], byte [esi]
arpl word [ebp - 0x56559ab4], si
push ecx
xor dword [edx - 0x32], edx
jg 0x15a5b18
pop edx
add edx, ebp
pop edx
xor dword [ebx], ecx
and eax, 0xbb5fe639
aad 0x83
int1
push cs
and dword [esi - 0x7c], esp
or esi, ebp
push edi
pop esi
hlt
invalid
lodsb al, byte [esi]
out dx, al
in al, 0x71
jmp 0x15a5aff
push edi
ret
xchg dword [esp + 0x20], ebx
jl 0x13a485c
push ecx
ja 0x160fa29
mov edi, dword [esp + 0x20]
add dword [esp + 0xc], 0xffb6ca49
mov ecx, 0x43950205
add dword [esp + 0x14], 0x1d13572b
cmp word [esp + 0x18], cx
mov ecx, dword [esp]
call fcn.01625476
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
test dl, 0x30
cmc
cmp eax, 0x663d16d6
lea ebp, [ebp + 4]
cmp bl, 0xb0
xor ecx, ecx
test edx, edx
jmp 0x1345310
bswap eax
cmp bp, dx
sub eax, 0x534d3f82
cmc
stc
rol eax, 1
bswap eax
stc
lea eax, [eax + 0x5dfd330b]
stc
neg eax
cmp ebx, esi
xor ebx, eax
add edi, eax
jmp 0x12eb2dd
je 0x14ddaf2
push esi
btr si, 0xb5
btc esi, edi
movzx esi, byte [eax]
test edx, esp
xor esi, edx
test edx, ecx
cmp bx, 0x1bf8
stc
and esi, 0xff
mov esi, dword [esi*4 + 0x11e129c]
clc
jmp 0x140552f

Function at 0x15c212f
Capabilities:
Execute anti-debugging instructions

Disassembly:
push edx
push ebx
mov cl, 0x10
xchg dword [esp + ecx - 0xf2e0], eax
jge fcn.0147b39b
mov ebx, dword [esp + 0x20]
call fcn.0128bc99

Function at 0x15c2149
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov ecx, dword [esp + 0x48]
xor byte [esp + 0x34], 0xf8
call fcn.0141f80f
Function at 0x15c2157
Capabilities:
Execute anti-debugging instructions

Disassembly:
push eax
movzx edx, sp
push edi
not edi
rdtsc
movsx ax, al
push ecx
xchg di, ax
push ebx
cwd
rdtsc
push ebp
cmovle ebx, ebx
movzx edi, sp
push esi
cmovl di, dx
movsx ebx, bx
cwde
pushfd
mov edx, 0xa50000
not ah
push edx
bswap di
mov edi, dword [esp + 0x28]
test dx, bx
cmp edx, eax
not edi
lahf
cwde
sub eax, 0x799c10b9
add edi, 0x1dd53bd9
lahf
dec ebp
mov ax, di
bswap edi
movsx eax, si
inc ebp
dec edi
lahf
lea edi, [edi + edx]
rdtsc
cmp bl, 0xa9
mov esi, esp
btr edx, 0xd8
adc ebx, 0x32de41c6
sub esp, 0xc0
bts edx, edx
or bp, 0x1712
sar edx, cl
push edx
mov dx, 0x5776
jmp 0x12e2655

Function at 0x161710b
Capabilities:
Authenticate hmac

Disassembly:
jmp ebp
inc eax
cmc
jmp 0x1397152
xor dl, 0x44
movsx eax, ax
btr ax, 0x63
ror dl, 1
add dl, 0xc9
clc
rol dl, 1
movsx eax, cx
cmp bx, ax
rcr ax, 0x5c
xor dl, 0x5b
xor eax, 0x148a4b7f
btr ax, dx
xor bl, dl
sar al, cl
xor ah, 8
push edi
push ebp
push ebx
rol ebx, cl
mov ebp, 0x124b70a6
btc ebp, ebp
mov ebp, esi
mov ebx, edx
mov edx, ebx
rcr al, cl
shl edx, 2
btc eax, 0x22
adc ah, 0xe5
mov eax, ebp
add eax, edx
stc
mov dword [ebp - 4], eax
cmp di, 0x66ef
clc
test cl, 0x40
test ebx, ebx
jmp 0x14cdd99
rol eax, 1
cmp bh, al
xor ebx, eax
cmp sp, si
test esp, edi
add ebp, eax
jmp 0x12e010e
bswap eax
jmp 0x12f6308
je 0x1506fb5
mov eax, dword [ebp + ebx*4]
push eax
test di, bp
cmp ah, 0xc
sub ebx, 1
jmp 0x1506faf
call eax
mov ebp, dword [ebp - 4]
and edi, 0xf332068
test esp, 0x5d6f61eb
sbb di, 0x5ff9
mov dword [ebp], eax
stc
shl bl, 0xe4
mov esi, ebp
pop ebx
cwde
rcl eax, 9
pop ebp
xchg edi, eax
pop edi
movzx eax, sp
mov eax, dword [edi]
clc
cmp ch, 0x21
cmc
lea edi, [edi + 4]
xor eax, ebx
clc
stc
cmp esp, 0x2c656a8b
not eax
cmp si, ax
test bp, 0x3d6
add eax, 0x6c071087
jmp 0x13ded68
jne 0x14cdd9f
mov eax, dword [ebp]
jmp 0x14d8add
cmp dword [esp + 0x18], ecx
mov byte [esp + 0xc], bh
call fcn.015bb33c
movzx edx, byte [edi]
test si, 0x422a
cwde
lea edi, [edi + 1]
cwde
xor dl, bl
movzx ax, bh
btc eax, esi
stc
rol dl, 1
inc dl
stc
neg dl
seta ah
ror ah, cl
btr eax, 0xaa
rol dl, 1
cmove ax, bp
bt ax, sp
bsr eax, ebx
add dl, 0xac
btr ax, 0x36
btr ax, ax
not dl
rcr ax, cl
clc
ror dl, 1
shr ah, 0x68
jmp 0x13823ae
jno 0x157658d
Function at 0x408f9f
Capabilities:
Parse pe header

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

Function at 0x420f00
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0042f1ae
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x420f3f
sub eax, 1
je 0x420f3a
sub eax, 1
je 0x420f36
xor eax, eax
leave
ret
push 3
jmp 0x420f41
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x434c40
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x449c20
push 0x449c18
push str.FlsAlloc
push 0x1f
call fcn.00434aab
mov esi, eax
add esp, 0x10
test esi, esi
je 0x434c74
push dword [ebp + 8]
mov ecx, esi
call dword [0x4451d0]
call esi
jmp 0x434c7a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x434cbe
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x449c30
push 0x449c28
push str.FlsGetValue
push 0x21
call fcn.00434aab
mov esi, eax
add esp, 0x10
test esi, esi
je 0x434cf5
push dword [ebp + 8]
mov ecx, esi
call dword [0x4451d0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x434cfd
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x449c38
push 0x449c30
push str.FlsSetValue
push 0x22
call fcn.00434aab
mov esi, eax
add esp, 0x10
test esi, esi
je 0x434d37
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4451d0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4355ff
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00443380
mov eax, dword [0x453008]
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.00432541
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x435641
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x43579d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004433b0
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 + 0x455340]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00435a24
mov ecx, dword [esi*4 + 0x455340]
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 0x435796
cmp eax, dword [ecx + edi + 0x24]
jne 0x435796
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 0x435796
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00435a24
add esp, 0x14
test edx, edx
jl 0x435796
jg 0x43570c
test eax, eax
jb 0x435796
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x435796
jl 0x435726
cmp dword [ebp - 0x1008], eax
ja 0x435796
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x435744
test ebx, ebx
je 0x43577d
cmp ecx, edi
jae 0x43577d
mov al, byte [ecx]
cmp al, 0xd
jne 0x43575e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x43576a
cmp byte [ecx + 1], 0xa
jne 0x43576a
inc ecx
jmp 0x43576a
movzx eax, al
movsx eax, byte [eax + 0x4539a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x435744
cmp edx, ebx
jne 0x435744
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x43579b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040850d
leave
ret
Function at 0x436d54
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 0x436df1
push ebx
push esi
call fcn.00436d1d
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.00436cb1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x436d9e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x436df0
push edi
push eax
call fcn.00435aa0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x436dbe
call fcn.00433697
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x436def
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00436cb1
add esp, 0x20
test eax, eax
jne 0x436ddd
push edi
call fcn.00433697
jmp 0x436de5
push ebx
call fcn.00433697
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 0x436df4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x436e05
pop esi
ret
push ebx
push edi
push esi
call fcn.00436d1d
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00435aa0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x436e2d
push ebx
push esi
push edi
call fcn.00421e50
add esp, 0xc
push 0
call fcn.00433697
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4371fd
Capabilities:
Set environment variable

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

Function at 0x439c74
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004333ac
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x439ce3
cmp esi, dword [ebp - 4]
je 0x439cde
cmp dword [ebp + 0xc], 0
je 0x439cde
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x439cbb
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004397c6
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x439ce5
xor eax, eax
inc eax
jmp 0x439ce5
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x439d4a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x453008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004333ac
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004333ac
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x439dc1
cmp word [ecx], dx
je 0x439dc1
mov eax, dword [0x44a09c]
push edi
dec eax
push eax
push 0x449f88
call fcn.00439ce9
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x439e34
cmp word [eax], dx
je 0x439e34
mov eax, dword [edi]
test eax, eax
je 0x439de5
cmp word [eax], dx
je 0x439de5
lea eax, [ebp - 0x10]
push eax
call fcn.004396cc
jmp 0x439dee
lea eax, [ebp - 0x10]
push eax
call fcn.00439767
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x439e5e
mov eax, dword [0x449f84]
push dword [ebp - 0x14]
dec eax
push eax
push 0x449c78
call fcn.00439ce9
add esp, 0xc
test al, al
je 0x439e5e
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x439e29
cmp word [eax], di
je 0x439e29
lea eax, [ebp - 0x10]
push eax
call fcn.004396cc
pop ecx
jmp 0x439e60
lea eax, [ebp - 0x10]
push eax
call fcn.00439767
jmp 0x439e26
mov eax, dword [edi]
test eax, eax
je 0x439e4b
cmp word [eax], dx
je 0x439e4b
lea eax, [ebp - 0x10]
push eax
call fcn.00439681
pop ecx
jmp 0x439e5e
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x439f29
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00439b6e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x439f29
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x439f29
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x439f29
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x439eb6
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00434ed9
test ebx, ebx
je 0x439f24
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00434ed9
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x439f29
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x439f29
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0043e9f1
add esp, 0x10
xor eax, eax
inc eax
jmp 0x439f2b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040850d
leave
ret
Function at 0x43d56e
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 + 0x455340]
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 0x43d5ae
cmp byte [ebx], 0xa
jne 0x43d5ae
or byte [edi + eax + 0x28], 4
jmp 0x43d5b3
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 0x43d6b2
mov dl, byte [eax]
cmp dl, 0x1a
je 0x43d695
inc eax
cmp dl, 0xd
je 0x43d5df
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x43d605
cmp eax, ecx
jae 0x43d613
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 0x43d5c7
jmp 0x43d6b2
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 0x43d690
cmp dword [ebp - 0x10], 0
je 0x43d690
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x455340]
test byte [eax + edi + 0x28], 0x48
je 0x43d66a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x43d655
mov byte [esi], dl
jmp 0x43d666
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x455340]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x43d6b2
cmp byte [ebp - 1], 0xa
jne 0x43d679
cmp esi, ebx
jne 0x43d679
mov byte [esi], 0xa
jmp 0x43d6b1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00435a42
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43d6b2
mov byte [esi], 0xd
jmp 0x43d6b1
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x455340]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43d6af
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43d6b2
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43d6bb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x455340]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43d701
cmp word [ebx], dx
jne 0x43d701
or byte [eax + edi + 0x28], 4
jmp 0x43d706
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x43d869
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x43d849
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x43d747
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43d77d
cmp eax, edx
jae 0x43d78b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x43d722
jmp 0x43d869
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43d844
cmp dword [ebp - 0x18], 0
je 0x43d844
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x455340]
test byte [eax + edi + 0x28], 0x48
je 0x43d81a
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x43d7de
mov word [esi], cx
jmp 0x43d815
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x455340]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x455340]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x455340]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x43d869
pop eax
cmp word [ebp - 4], ax
jne 0x43d82a
cmp esi, ebx
jne 0x43d82a
mov word [esi], ax
jmp 0x43d866
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00435a42
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x43d869
push 0xd
pop eax
jmp 0x43d825
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x455340]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x43d863
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x43d869
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x441ee5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00441e61
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x442054
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x442054
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x442009
jg 0x441f41
test eax, eax
je 0x441fff
push 1
push 0x1000
call fcn.004347a9
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x441f64
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x441ff6
push 0x8000
push ebx
call fcn.00427d73
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x441f8d
jg 0x441f88
cmp ecx, 0x1000
jb 0x441f8d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00432e52
add esp, 0x10
cmp eax, 0xffffffff
je 0x441fd2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x441f88
jl 0x441fb9
test ecx, ecx
jne 0x441f7a
push dword [ebp - 0xc]
push ebx
call fcn.00427d73
push esi
call fcn.00433697
add esp, 0xc
xor ebx, ebx
jmp 0x442062
cmp byte [edi + 0x24], 0
je 0x441fe9
cmp dword [edi + 0x20], 5
jne 0x441fe9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x441ff4
mov ebx, dword [edi + 0x18]
jmp 0x441ff6
xor ebx, ebx
push esi
call fcn.00433697
pop ecx
jmp 0x442062
test ecx, ecx
jg 0x441fcb
jl 0x442009
test eax, eax
jae 0x441fcb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00435a42
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x442029
cmp byte [edi + 0x1c], 0
je 0x441fcb
jmp 0x44205a
push ebx
call fcn.00437b44
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x441fcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x442062
cmp byte [edi + 0x1c], 0
je 0x44205f
mov ebx, dword [edi + 0x18]
jmp 0x442062
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00435a42
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x443280
Capabilities:
Parse pe header

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