joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10155100
Capabilities:
Allocate thread local storage

Disassembly:
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x104b450c], eax
jne 0x1015512d
call fcn.1013d9ed
mov eax, dword [eax]
push eax
push str.Cant_initialize_threads:_error__d_n
push 0x103a0010
call fcn.1013d001
add esp, 0xc
mov al, 1
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x104b4640
call esi
push 0x104b45c0
call esi
push 0x104b45e0
call esi
push 0x104b4580
call esi
push 0x104b45a0
call esi
push 0x104b4540
call esi
push 0x104b4520
call esi
push 0x104b4600
call esi
call fcn.10158d10
push 0x104b4620
call esi
push 0x104b4560
call esi
call fcn.10155200
test al, al
pop esi
je 0x10155191
call fcn.101551a0
mov al, 1
ret
xor al, al
ret

Function at 0x10155200
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0x104b45e0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x104b450c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x1015527b
push 0x4c
push 1
call fcn.1013de15
mov esi, eax
add esp, 8
test esi, esi
jne 0x10155243
push 0x104b45e0
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x104b450c]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x104a6ec4]
inc eax
lea edx, [esi + 0xc]
mov dword [0x104a6ec4], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.10158d20
add esp, 8
mov byte [esi + 0x3c], 1
push 0x104b45e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
Function at 0x10155700
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.1013d9ed
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.10147f6b
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x101557fa
call fcn.1013d9ed
cmp dword [eax], 0
je 0x10155747
call fcn.1013d9ed
mov ebp, dword [eax]
jmp 0x1015574a
or ebp, 0xffffffff
call fcn.10155290
test esi, esi
mov dword [eax], ebp
jne 0x1015575f
call fcn.1013d9ed
cmp dword [eax], 4
je 0x101557af
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x10155792
cmp esi, 0xffffffff
je 0x101557d4
test al, 6
je 0x10155792
call fcn.10155290
mov ecx, dword [eax]
push ecx
push ebx
call fcn.10158d50
add esp, 4
push eax
push 0x24
push 9
call fcn.10155ae0
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x101557f2
test al, 6
je 0x101557a0
test ah, 2
je 0x101557f2
test esi, esi
jbe 0x101557fe
test ah, 2
je 0x101557fe
add dword [esp + 0x18], esi
sub edi, esi
call fcn.1013d9ed
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.10147f6b
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x101557fa
jmp 0x10155734
call fcn.10155290
mov eax, dword [eax]
push eax
push ebx
call fcn.10158d50
add esp, 4
push eax
push 0x24
push 2
call fcn.10155ae0
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x1015580b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x10155814
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x101722d1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x101722f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1013d97a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x10172314
test byte [esp + 8], 2
je 0x10172314
call fcn.1013d9ed
mov dword [eax], 0xd
call fcn.1013d9f6
mov dword [eax], 5
jmp 0x101722ed
xor eax, eax
ret

Function at 0x101775b9
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x101775f1
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.10175646
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.1017561e
jmp 0x101775fd
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x10178cab
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x10178ced
call fcn.1017ed0c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x10178ced
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x10178ce4
xor eax, eax
jmp 0x10178cf5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.10178cfb
pop edi
pop esi
pop ebx
ret 4
Function at 0x697820d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x6978212b
cmp byte [esi + ebx - 1], 0xa
je 0x697820ff
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x697870a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x4029e2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov esp, 0xdf9902ee
shl ebp, 0x31
mov dword [0x906033fd], eax

Function at 0x402e51
Capabilities:
Encode data using xor

Disassembly:
inc eax
pop esi
xor dword [esi + 0xe], 0x8ed9aeae
sub esi, 0xfffffffc
loop 0x402e54
push edx
inc esi
push esi
mov gs, word [esi + 0x7cbfb9ae]
daa
cmp al, 0xea
and eax, 0xfc05e9fc
mov byte [0x9fbadc52], al
sbb dword es:[ecx], 0xdc05ffe4
xchg al, ch
dec esi
add dl, byte [edx - 0x7d530d48]
stc
dec edi
popal
mov dword [0xdbe749d8], eax
fdiv st(1), st(0)
and eax, 0xec259e8b
in eax, 0x8f
jle 0x402ebf
cdq
imul byte [ebx]
outsb dx, byte [esi]
lodsd eax, dword [esi]
ret 0x7eaf
mov dh, 0x4e
fld xword [0xe256d38d]
mov bl, bl
cmp esi, edx
and eax, 0x7d8ffdf6
enter 0xffffffffffff8252, 0xffffffffffffffe5
and eax, 0x7daf9281
push edx
mov ah, byte [0xea0709af]
mov bh, ch
aad 0xf5
iretd

Function at 0x406fe8
Capabilities:
Set socket configuration

Disassembly:
dec ecx
cmp edx, ecx
lds eax, [ebp + 0xd08c]
lahf
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
lea ecx, [edi + ebx - 0x7624aa73]
fucomp st(4)
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x12], ecx
mov dword [ebp - 0x5e], edx
call 0x3acb975a
or al, 0x39
add al, 0xf
test byte [eax - 0x77000000], ch
pop ebp
sub byte [ebx + 0x386a1cdd], cl
sahf
call fcn.00404a60
mov eax, dword [ebx + 0x33]
shl bh, 4
mov ecx, 0x4500000e
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x5b]
mov dword [esi], eax
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
les edi, [ecx]
push ebp
adc al, 0x97
push 0x44
mov ecx, dword [eax]
push esi
mov dword [esi + 0x2c], ecx
call fcn.00406dd0
add esp, 0xc
test ebx, ebx
jne 0x4070a5
cli
inc ebp
dec esi
test eax, eax
je 0x40706b
push eax
mov eax, dword [ebp - 0x52]
inc ebp
scasb al, byte es:[edi]
insd dword es:[edi], dx
xlatb
fucom st(7)
invalid
mov edx, dword [ebx + 4]
mov dword [esi + 4], edx
mov dword [ebx + 0x24], esi
mov eax, dword [ebp + 0xc]
add edi, 8
add al, 0xde
mov dword [esi + 0xb], ebp
mov edx, dword [edx]
or al, 0x83
cmp al, 0x1a
push 0xf
test dword [ebx - 0x77], ebx
inc dword [edi]
lcall 0xe58b, 0x5bed9f5e
pop ebp
ret
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x4042e8
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x6871a441
mov ecx, 0x4d38f02f
xor ecx, esi
mov esi, 0x5b6d0fa2
xor ecx, esi
xor ecx, 0x7623b887
mov eax, 0x40020a08
mov esi, 0x28319184
xor eax, esi
xor ecx, eax
mov ebx, 0x284e0723
xor ecx, ebx
xor ecx, 0x85d5754
mov ebx, 0x8180
mov edi, 0x405000
xor ebx, edi
mov esi, ebx
dec esi
mov eax, dword [esi + 1]
mov ecx, eax
sub ecx, 0xffffffdc
mov ebx, dword [ecx - 0x24]
mov esi, 0x276df118
xor ebx, esi
mov eax, ebx
push eax
pop ecx
mov edi, 0x373195b1
mov edx, 0x373195b5
xor edx, edi
sub esp, edx
xor ebx, ebx
add ebx, esp
mov dword [ebx], ecx
mov esi, 0x18800305
mov edi, 0x65022040
inc eax
and byte [edx], al
xor esi, edi
push 0x599709fb
mov eax, 0x4960fabf
pop ebx
xor eax, ebx
mov edi, 0x10400c04
mov ecx, 0x481400c2
xor edi, ecx
xor edi, eax
mov esi, 0x510ec412
mov ebx, 0xa900805
xor esi, ebx
xor edi, esi
mov eax, 0x187384e7
xor eax, 0x187384e7
push 0x43e34518
mov esi, 0x43e34518
pop ebx
xor esi, ebx
xor eax, esi
xor eax, edi
or eax, eax
jne 0x403ef4
rol byte [eax], 2
mov byte [0x40c034], 2
mov byte [0x40c035], 3
mov word [0x40c3dc], 0
mov word [0x40c3ec], 1
call fcn.0040285c
mov eax, 0x40c038
mov edx, 0x404398
call fcn.00403c25
mov eax, 0x40c204
mov edx, 0x404398
call fcn.00403c25
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404391
ret

Function at 0x40520c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405245
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40524e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405258
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405279
mov al, byte [esp]
jmp 0x40527b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40627a
Capabilities:
Encode data using xor

Disassembly:
cmp dword [ebp - 0x28], 0
je 0x406295
mov edi, 0x10020
mov edx, 0x40010
xor edi, edx
mov ecx, 0x16e33f93
xor ecx, 0x17f32d91
xor edi, ecx
add esp, 0xfffffffc
cld
mov edx, esp
mov dword [edx], edi
mov edi, 0x6ed3a92
mov ebx, 0x3a1a81fb
xor ebx, edi
mov ecx, ebx
xor ecx, 0xffffffff
and ecx, 0x3da27833
and ebx, 0xc25d87cc
or ebx, ecx
pop esi
xor ebx, esi
mov edx, 0
mov ecx, 0
xor edx, ecx
xor edx, ebx
sub edx, 0x50
mov eax, dword [edx + 0x50]
push 0x73bb97e7
mov esi, 0x674ef42d
dec esi
pop edi
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x100040a0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x10004100
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 4]
mov edx, 0x10004118
mov eax, 0x10004130
call fcn.10001be8
push 0
push dword [ebp - 4]
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
jne 0x100040e3
xor eax, eax
leave
ret
mov eax, 1
leave
ret
Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
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 eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x400703ff
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x1e091f83
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4047ec
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x448520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x14]
mov ebx, esi
xor eax, eax
mov edi, dword [esi + 0x28]
or ecx, 0xffffffff
inc ecx
cmp word [edi + ecx*2], ax
jne 0x404815
mov edx, eax
test ecx, ecx
je 0x40483d
cmp word [edi + edx*2], ax
je 0x404839
mov al, byte [edi + edx*2]
mov byte [ebp + edx - 0x44], al
inc edx
push 0
pop eax
cmp edx, ecx
jb 0x404822
jmp 0x40483d
mov byte [ebp + edx - 0x44], al
cmp ecx, 0x40
jae 0x40487a
mov byte [ebp + ecx - 0x44], al
xor edx, edx
lea ecx, [ebp - 0x44]
call fcn.0040477e
cmp eax, 0x879df9c
je 0x404875
mov esi, dword [esi]
test esi, esi
je 0x404864
push 0
pop eax
cmp esi, ebx
jne 0x40480f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419fba
leave
ret
mov eax, dword [esi + 0x10]
jmp 0x404866
call fcn.0041a431
int3

Function at 0x40494d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
xor esi, esi
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov edx, dword [eax + 0x20]
mov ebx, dword [eax + 0x1c]
add edx, edi
mov ecx, dword [eax + 0x24]
add ebx, edi
mov eax, dword [eax + 0x18]
add ecx, edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x4049a7
mov ecx, dword [edx + esi*4]
add ecx, edi
or edx, 0xffffffff
inc edx
cmp byte [edx + ecx], 0
jne 0x40498d
call fcn.0040477e
cmp dword [ebp - 4], eax
je 0x4049ae
mov edx, dword [ebp - 0xc]
inc esi
cmp esi, dword [ebp - 8]
jb 0x404985
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + esi*2]
mov eax, dword [ebx + eax*4]
add eax, edi
jmp 0x4049a9