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

Disassembly:
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
je 0x410a76
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x410a76
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x410a76
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x410a76
cmp dword [ecx + 0x74], 0xe
jbe 0x410a76
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
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 0x40dc00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40dc0f
pop dword [ebp - 0xc]
mov eax, 0x2d48f477
add eax, 0xd2f7e798
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x4cc15
push 0
mov eax, 0xefb51677
add eax, 0x10915161
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x4431
xor edx, edx
add edx, eax
mov ebx, 0x45de2b6a
add ebx, 0xba6ab496
add ebx, dword [ebp - 0xc]
mov edi, 0x934f1d8a
add edi, 0xc089d3be
sub dword [ebp - 8], edi
mov esi, dword [ebx]
add dword [ebp - 4], ecx
xor esi, edi
mov dword [edx], esi
add dword [ebp - 4], esi
add edx, 0x7b85c720
sub edx, 0x7b85c71c
add ebx, 0x96f7e7f
sub ebx, 0x96f7e7b
loop 0x40dc6a
add eax, 0xe3f8b414
add eax, 0x1c084f83
mov ebx, eax
add eax, 0xb657091c
sub eax, 0xb6570917
mov ecx, 0x400000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0xb6f4349
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x60ce29c8
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401424
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 4
jb 0x40148f
push edi
mov edi, esi
shr edi, 2
movzx eax, byte [edx]
sub esi, 4
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x450f58]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x450f58]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x450f58]
movzx eax, byte [edx + 3]
add edx, 4
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x450f58]
sub edi, 1
jne 0x401438
pop edi
test esi, esi
je 0x4014ab
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x450f58]
inc edx
sub esi, 1
jne 0x401493
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x406308
Capabilities:
Get common file path

Disassembly:
push 0x13c
mov eax, 0x441fd3
call fcn.00440fe8
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.BjAstuvwxa
lea ecx, [ebp + 8]
call fcn.0040b3a8
push ecx
push eax
lea ecx, [ebp - 0x148]
call fcn.0040b423
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0xf
jbe 0x406356
mov eax, dword [eax]
push eax
call fcn.0041db47
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x148]
call fcn.0040acb5
push 0x451478
lea ecx, [ebp + 8]
call fcn.0040b3a8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x118], esp
push ecx
mov ecx, eax
call fcn.0040b3dd
mov byte [ebp - 4], 2
push esi
mov byte [ebp - 4], bl
call fcn.0041d980
push 0x45147c
lea ecx, [ebp + 8]
mov esi, eax
call fcn.0040b3a8
push ecx
push eax
lea ecx, [ebp - 0x148]
call fcn.0040b423
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 0xf
jbe 0x4063c1
mov eax, dword [eax]
push eax
mov ecx, esi
call dword [0x448184]
call esi
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x148]
call fcn.0040acb5
push 0x451480
lea ecx, [ebp + 8]
call fcn.0040b3a8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x118], esp
push ecx
mov ecx, eax
call fcn.0040b3dd
mov byte [ebp - 4], 4
push esi
mov byte [ebp - 4], bl
call fcn.0041d980
push 0x451484
lea ecx, [ebp + 8]
mov dword [edi + 0x20], eax
call fcn.0040b3a8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x11c], esp
push ecx
mov ecx, eax
call fcn.0040b3dd
mov byte [ebp - 4], 5
push esi
mov byte [ebp - 4], bl
call fcn.0041d980
push 0x451488
lea ecx, [ebp + 8]
mov dword [edi + 0x24], eax
call fcn.0040b3a8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x120], esp
push ecx
mov ecx, eax
call fcn.0040b3dd
mov byte [ebp - 4], 6
push esi
mov byte [ebp - 4], bl
call fcn.0041d980
push 0x45148c
lea ecx, [ebp + 8]
mov dword [edi + 0x28], eax
call fcn.0040b3a8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x124], esp
push ecx
mov ecx, eax
call fcn.0040b3dd
mov byte [ebp - 4], 7
push esi
mov byte [ebp - 4], bl
call fcn.0041d980
push 0x451490
lea ecx, [ebp + 8]
mov dword [edi + 0x2c], eax
call fcn.0040b3a8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x128], esp
push ecx
mov ecx, eax
call fcn.0040b3dd
mov byte [ebp - 4], 8
push esi
mov byte [ebp - 4], bl
call fcn.0041d980
push 0x451494
lea ecx, [ebp + 8]
mov dword [edi + 0x30], eax
call fcn.0040b3a8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x12c], esp
push ecx
mov ecx, eax
call fcn.0040b3dd
mov byte [ebp - 4], 9
push esi
mov byte [ebp - 4], bl
call fcn.0041d980
push 0x451498
lea ecx, [ebp + 8]
mov dword [edi + 0x34], eax
call fcn.0040b3a8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x130], esp
push ecx
mov ecx, eax
call fcn.0040b3dd
mov byte [ebp - 4], 0xa
push esi
mov byte [ebp - 4], bl
call fcn.0041d980
mov dword [edi + 0x40], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040ae1a
call fcn.00440f94
ret 0x10
Function at 0x406622
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x45b040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x40665a
lea eax, [ebp - 8]
push eax
push esi
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x40666d
add edi, dword [ebp - 8]
sub esi, dword [ebp - 8]
jne 0x406641
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041df18
leave
ret 0xc
xor al, al
jmp 0x40665c
Function at 0x418de0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
test esi, esi
jg 0x418e0a
jl 0x418e01
test ebx, ebx
jne 0x418e0a
xor eax, eax
xor edx, edx
jmp 0x418ec2
cmp dword [ecx + 0x38], 0
je 0x418e1d
push esi
push ebx
push edx
call fcn.004195d0
jmp 0x418ec2
mov eax, dword [ecx + 0x1c]
push edi
mov edi, ebx
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x418e5d
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x418e5d
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push dword [ebp - 0xc]
push edx
call fcn.00420900
mov ecx, dword [ebp - 8]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
cmp dword [ecx + 0x4c], 0
je 0x418eb8
call fcn.00419a07
mov ecx, dword [ebp - 4]
mov edx, edi
cmp edi, 0xfff
jbe 0x418ea0
mov eax, dword [ebp - 8]
push dword [eax + 0x4c]
push 0xfff
push 1
push ecx
call fcn.00425a73
mov ecx, dword [ebp - 4]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x418eb8
jmp 0x418e6d
test edx, edx
je 0x418eb8
mov eax, dword [ebp - 8]
push dword [eax + 0x4c]
push edi
push 1
push ecx
call fcn.00425a73
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41d4b8
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0x268
mov eax, 0x446bab
call fcn.00440fe8
mov ebx, dword [ebp + 8]
push 0
push 2
mov dword [ebp - 0x244], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x240], eax
push ecx
push eax
mov dword [ebp - 0x23c], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x41d5c3
push ebx
lea eax, [ebp - 0x274]
push eax
call fcn.0041d0c2
mov esi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x25c]
call fcn.00415847
mov edx, eax
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 7
mov eax, dword [esi + 0x10]
jbe 0x41d533
mov esi, dword [esi]
cmp dword [edx + 0x14], 7
mov edi, dword [edx + 0x10]
jbe 0x41d53e
mov edx, dword [edx]
cmp edi, eax
jne 0x41d560
test edi, edi
je 0x41d55c
sub edx, esi
movzx ecx, word [edx + esi]
movzx eax, word [esi]
cmp cx, ax
jne 0x41d560
add esi, 2
sub edi, 1
jne 0x41d548
mov bl, 1
jmp 0x41d562
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x25c]
call fcn.0040ac87
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x274]
call fcn.0040ac87
test bl, bl
je 0x41d5aa
push dword [ebp - 0x234]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x41d5aa
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov ebx, dword [ebp - 0x244]
test eax, eax
jne 0x41d4fd
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00440f94
ret 4

Function at 0x41d77b
Capabilities:
Encode data using xor

Disassembly:
push 0x18
mov eax, 0x446c46
call fcn.00440fb2
and dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x18], ebx
and dword [ebp - 0x10], 0
mov dword [ebp - 4], 1
mov esi, str.852149723
lea edi, [ebp - 0x24]
mov ecx, ebx
push 0x450692
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.0040a8b4
xor esi, esi
mov dword [ebp - 0x10], 1
cmp dword [ebp + 0x1c], esi
jbe 0x41d7ef
cmp dword [ebp + 0x20], 0xf
lea ecx, [ebp + 0xc]
push 0xa
cmova ecx, dword [ebp + 0xc]
mov eax, esi
cdq
pop edi
idiv edi
mov al, byte [ebp + edx - 0x24]
xor al, byte [ecx + esi]
mov ecx, ebx
mov byte [ebp - 0x14], al
push dword [ebp - 0x14]
call fcn.0040acdb
inc esi
cmp esi, dword [ebp + 0x1c]
jb 0x41d7c2
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0040acb5
mov eax, ebx
call fcn.00440f80
ret 0x1c
Function at 0x41d980
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x54
mov eax, 0x446c85
call fcn.00441054
mov edi, dword [ebp + 8]
and dword [ebp - 4], 0
test edi, edi
jne 0x41d9aa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040acb5
xor eax, eax
jmp 0x41dac2
mov dword [ebp - 0x2c], edi
mov eax, dword [edi + 0x3c]
mov ecx, dword [eax + edi + 0x78]
add ecx, edi
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx + 0x24]
add eax, edi
mov dword [ebp - 0x40], eax
mov eax, dword [ecx + 0x20]
add eax, edi
mov dword [ebp - 0x38], eax
or edx, 0xffffffff
mov dword [ebp - 0x24], edx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov eax, dword [ecx + 0x18]
dec eax
cmp ebx, eax
jae 0x41daaa
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + ebx*4]
add eax, edi
mov dword [ebp - 0x28], eax
xorps xmm0, xmm0
movlpd qword [ebp - 0x34], xmm0
mov byte [ebp - 4], 1
call fcn.004251cc
mov dword [ebp - 0x3c], eax
lea esi, [ebp + 0xc]
cmp dword [ebp + 0x20], 0xf
cmova esi, dword [ebp + 0xc]
and dword [eax], 0
push 0xa
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.00429eb7
add esp, 0xc
mov ecx, eax
cmp esi, dword [ebp - 0x18]
je 0x41daed
mov eax, dword [ebp - 0x3c]
cmp dword [eax], 0x22
je 0x41daf7
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
and dword [ebp - 4], 0
jmp 0x41da60
push dword [ebp - 0x28]
lea ecx, [ebp - 0x58]
call fcn.0040a8b4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
cmp dword [ebp - 0x44], 0xf
cmova ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x48]
call fcn.00413db8
mov esi, eax
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0040acb5
cmp esi, dword [ebp - 0x34]
jne 0x41dae1
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x30]
jne 0x41dae1
mov eax, dword [ebp - 0x40]
movzx edx, word [eax + ebx*2]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0x1c]
add eax, edi
mov esi, dword [eax + edx*4]
add esi, edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040acb5
mov eax, esi
call fcn.00440fa3
ret 0x1c
inc ebx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
jmp 0x41d9d1
push str.invalid_stoull_argument
call fcn.0041ee4a
push str.stoull_argument_out_of_range
call fcn.0041ee8a
int3
Function at 0x41db47
Capabilities:
Access peb ldr_data

Disassembly:
push 0x240
mov eax, 0x446ccb
call fcn.00440fe8
mov eax, dword fs:[0x30]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x21c], esi
mov ebx, dword [eax + 0xc]
add ebx, 0x14
mov edi, dword [ebx]
cmp edi, ebx
je 0x41dc5a
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00420760
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00420760
add esp, 0x18
push dword [edi + 0x20]
call fcn.0041db02
push eax
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00424daf
push esi
mov esi, 0x104
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00424daf
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0042c8ea
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.0042c8ea
add esp, 0x28
lea eax, [ebp - 0x114]
lea ecx, [ebp - 0x24c]
push eax
call fcn.0040a8b4
mov esi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.0040a8b4
mov byte [ebp - 4], 1
push ecx
push eax
mov ecx, esi
call fcn.0041c34f
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.0040acb5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
call fcn.0040acb5
cmp esi, 0xffffffff
jne 0x41dc55
mov edi, dword [edi]
cmp edi, ebx
je 0x41dc5a
mov esi, dword [ebp - 0x21c]
jmp 0x41db75
mov eax, dword [edi + 0x10]
jmp 0x41dc5c
xor eax, eax
call fcn.00440f94
ret 4

Function at 0x41e999
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41e9d8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41e9d8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41e9d8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41e9d8
cmp dword [ecx + 0x74], 0xe
jbe 0x41e9d8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x423c08
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.00423a31
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x423d77
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x423d77
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x423d2c
jg 0x423c64
test eax, eax
je 0x423d22
push 1
push 0x1000
call fcn.004307d6
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x423c87
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x423d19
push 0x8000
push ebx
call fcn.0042dc5e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x423cb0
jg 0x423cab
cmp ecx, 0x1000
jb 0x423cb0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00431157
add esp, 0x10
cmp eax, 0xffffffff
je 0x423cf5
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 0x423cab
jl 0x423cdc
test ecx, ecx
jne 0x423c9d
push dword [ebp - 0xc]
push ebx
call fcn.0042dc5e
push esi
call fcn.00430833
add esp, 0xc
xor ebx, ebx
jmp 0x423d85
cmp byte [edi + 0x24], 0
je 0x423d0c
cmp dword [edi + 0x20], 5
jne 0x423d0c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x423d17
mov ebx, dword [edi + 0x18]
jmp 0x423d19
xor ebx, ebx
push esi
call fcn.00430833
pop ecx
jmp 0x423d85
test ecx, ecx
jg 0x423cee
jl 0x423d2c
test eax, eax
jae 0x423cee
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00431579
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x423d4c
cmp byte [edi + 0x1c], 0
je 0x423cee
jmp 0x423d7d
push ebx
call fcn.0043076c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x423cee
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 0x423d85
cmp byte [edi + 0x1c], 0
je 0x423d82
mov ebx, dword [edi + 0x18]
jmp 0x423d85
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00431579
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42565d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00441550
mov eax, dword [0x45b040]
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.00424e09
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42569f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4257fb
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004413e0
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 + 0x45cce0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0043155b
mov ecx, dword [esi*4 + 0x45cce0]
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 0x4257f4
cmp eax, dword [ecx + edi + 0x24]
jne 0x4257f4
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 0x4257f4
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043155b
add esp, 0x14
test edx, edx
jl 0x4257f4
jg 0x42576a
test eax, eax
jb 0x4257f4
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4257f4
jl 0x425784
cmp dword [ebp - 0x1008], eax
ja 0x4257f4
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4257a2
test ebx, ebx
je 0x4257db
cmp ecx, edi
jae 0x4257db
mov al, byte [ecx]
cmp al, 0xd
jne 0x4257bc
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4257c8
cmp byte [ecx + 1], 0xa
jne 0x4257c8
inc ecx
jmp 0x4257c8
movzx eax, al
movsx eax, byte [eax + 0x45b500]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4257a2
cmp edx, ebx
jne 0x4257a2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4257f9
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041df18
leave
ret
Function at 0x43251a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44ca28
push 0x44ca20
push str.FlsAlloc
push 0x1f
call fcn.00432385
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43254e
push dword [ebp + 8]
mov ecx, esi
call dword [0x448184]
call esi
jmp 0x432554
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x432598
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44ca38
push 0x44ca30
push str.FlsGetValue
push 0x21
call fcn.00432385
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4325cf
push dword [ebp + 8]
mov ecx, esi
call dword [0x448184]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4325d7
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44ca40
push 0x44ca38
push str.FlsSetValue
push 0x22
call fcn.00432385
mov esi, eax
add esp, 0x10
test esi, esi
je 0x432611
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x448184]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]