joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001e8e1
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 + 0x10034d18]
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 0x1001e921
cmp byte [ebx], 0xa
jne 0x1001e921
or byte [edi + eax + 0x28], 4
jmp 0x1001e926
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 0x1001ea25
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1001ea08
inc eax
cmp dl, 0xd
je 0x1001e952
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1001e978
cmp eax, ecx
jae 0x1001e986
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 0x1001e93a
jmp 0x1001ea25
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 0x1001ea03
cmp dword [ebp - 0x10], 0
je 0x1001ea03
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10034d18]
test byte [eax + edi + 0x28], 0x48
je 0x1001e9dd
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1001e9c8
mov byte [esi], dl
jmp 0x1001e9d9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10034d18]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1001ea25
cmp byte [ebp - 1], 0xa
jne 0x1001e9ec
cmp esi, ebx
jne 0x1001e9ec
mov byte [esi], 0xa
jmp 0x1001ea24
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001f467
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001ea25
mov byte [esi], 0xd
jmp 0x1001ea24
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10034d18]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001ea22
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001ea25
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001ea2e
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 + 0x10034d18]
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 0x1001ea74
cmp word [ebx], dx
jne 0x1001ea74
or byte [eax + edi + 0x28], 4
jmp 0x1001ea79
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 0x1001ebdc
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 0x1001ebbc
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1001eaba
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1001eaf0
cmp eax, edx
jae 0x1001eafe
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 0x1001ea95
jmp 0x1001ebdc
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 0x1001ebb7
cmp dword [ebp - 0x18], 0
je 0x1001ebb7
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10034d18]
test byte [eax + edi + 0x28], 0x48
je 0x1001eb8d
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 0x1001eb51
mov word [esi], cx
jmp 0x1001eb88
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10034d18]
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 + 0x10034d18]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10034d18]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1001ebdc
pop eax
cmp word [ebp - 4], ax
jne 0x1001eb9d
cmp esi, ebx
jne 0x1001eb9d
mov word [esi], ax
jmp 0x1001ebd9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001f467
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1001ebdc
push 0xd
pop eax
jmp 0x1001eb98
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10034d18]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1001ebd6
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1001ebdc
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 0x1002148d
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 0x1002152a
push ebx
push esi
call fcn.10021456
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.100203b8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100214d7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10021529
push edi
push eax
call fcn.1001f648
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100214f7
call fcn.1001c649
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10021528
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100203b8
add esp, 0x20
test eax, eax
jne 0x10021516
push edi
call fcn.1001c649
jmp 0x1002151e
push ebx
call fcn.1001c649
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 0x10024a39
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1001ac3c
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 0x10024aa8
cmp esi, dword [ebp - 4]
je 0x10024aa3
cmp dword [ebp + 0xc], 0
je 0x10024aa3
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10024a80
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1002458b
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10024aaa
xor eax, eax
inc eax
jmp 0x10024aaa
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10024b0f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100330c0]
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.1001ac3c
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.1001ac3c
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 0x10024b86
cmp word [ecx], dx
je 0x10024b86
mov eax, dword [0x1002cb64]
push edi
dec eax
push eax
push 0x1002ca50
call fcn.10024aae
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10024bf9
cmp word [eax], dx
je 0x10024bf9
mov eax, dword [edi]
test eax, eax
je 0x10024baa
cmp word [eax], dx
je 0x10024baa
lea eax, [ebp - 0x10]
push eax
call fcn.10024491
jmp 0x10024bb3
lea eax, [ebp - 0x10]
push eax
call fcn.1002452c
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10024c23
mov eax, dword [0x1002ca4c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1002c740
call fcn.10024aae
add esp, 0xc
test al, al
je 0x10024c23
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10024bee
cmp word [eax], di
je 0x10024bee
lea eax, [ebp - 0x10]
push eax
call fcn.10024491
pop ecx
jmp 0x10024c25
lea eax, [ebp - 0x10]
push eax
call fcn.1002452c
jmp 0x10024beb
mov eax, dword [edi]
test eax, eax
je 0x10024c10
cmp word [eax], dx
je 0x10024c10
lea eax, [ebp - 0x10]
push eax
call fcn.10024446
pop ecx
jmp 0x10024c23
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 0x10024cee
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10024933
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10024cee
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10024cee
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10024cee
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10024c7b
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1001cc5d
test ebx, ebx
je 0x10024ce9
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1001cc5d
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10024cee
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 0x10024cee
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100260de
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10024cf0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10010e74
leave
ret
Function at 0x10027950
Capabilities:
Parse pe header

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

Function at 0x4212a0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
push ebx
push esi
push edi
lea edi, [ebp - 0x38]
mov ecx, 0xe
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x4340f5
call fcn.00411a23
nop
mov dword [ebp - 8], 0x1505
mov eax, dword [ebp + 8]
add eax, 0x2c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add eax, 0x208
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x2c]
je 0x42133d
mov eax, dword [ebp - 0x20]
movzx ecx, word [eax]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xf4], edx
mov eax, dword [ebp - 0x20]
add eax, 2
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0xf4], 0
je 0x421319
mov dword [ebp - 0xf8], 1
jmp 0x421323
mov dword [ebp - 0xf8], 0
cmp dword [ebp - 0xf8], 0
je 0x42133d
mov eax, dword [ebp - 8]
shl eax, 5
add eax, dword [ebp - 8]
add eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
jmp 0x4212e1
mov eax, dword [ebp - 8]
and eax, 0x7fffffff
pop edi
pop esi
pop ebx
add esp, 0xf8
cmp ebp, esp
call fcn.00411753
mov esp, ebp
pop ebp
ret
Function at 0x10001b50
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
movzx ecx, word [edx + 0x14]
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0
jmp 0x10001b8f
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
add ecx, 0x28
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
movzx ecx, word [eax + 6]
cmp dword [ebp - 0x10], ecx
jge 0x10001cab
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
jne 0x10001c1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jle 0x10001c17
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x34]
push eax
push 4
push 0x1000
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10001bf0
xor eax, eax
jmp 0x10001cb0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.10001930
add esp, 0xc
jmp 0x10001b7d
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x10]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10001b30
add esp, 8
test eax, eax
jne 0x10001c3d
xor eax, eax
jmp 0x10001cb0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x34]
push edx
push 4
push 0x1000
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10001c74
xor eax, eax
jmp 0x10001cb0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10001980
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 8], edx
jmp 0x10001b7d
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x100027b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0x54e00
mov ecx, dword [ebp - 4]
push ecx
push 0x10004070
call fcn.10001000
add esp, 8
mov dword [ebp - 0xc], eax
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402ee0
Capabilities:
Create mailslot

Disassembly:
push ecx
cmp dword [0x2b8167c], 3
jne 0x402f02
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMailslotA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp], 0
mov eax, dword [esp + 0x10]
mov dword [esp], eax
mov eax, dword [esp + 0xc]
xor dword [esp], eax
mov eax, dword [esp]
mov ecx, dword [esp + 8]
mov dword [ecx], eax
pop ecx
ret 0xc

Function at 0x403110
Capabilities:
Enumerate gui resources
Get disk information

Disassembly:
mov eax, dword [0x2b8167c]
mov ecx, dword [0x2b7e588]
shr eax, 3
sub esp, 0x808
test eax, eax
jbe 0x4031e1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [0x2b8167c], 0x959
jne 0x4031c3
call esi
push 0
lea eax, [esp + 0x1c]
push eax
push 0
call edi
push 0
push 0
call ebx
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00402f50
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x403150
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret
Function at 0x408c50
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42ac30]
jne 0x408c5a
repz ret
jmp fcn.0040b76c

Function at 0x40af37
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004050e7
and dword [ebp - 4], 0
cmp dword [0x42bfc4], 0
mov ebx, eax
jne 0x40afe8
push 0x402ab4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b099
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402aa8
push edi
call esi
test eax, eax
je 0x40b099
push eax
call fcn.00405075
mov dword [esp], 0x402a98
push edi
mov dword [0x42bfc4], eax
call esi
push eax
call fcn.00405075
mov dword [esp], 0x402a84
push edi
mov dword [0x42bfc8], eax
call esi
push eax
call fcn.00405075
mov dword [esp], 0x402a68
push edi
mov dword [0x42bfcc], eax
call esi
push eax
call fcn.00405075
pop ecx
mov dword [0x42bfd4], eax
test eax, eax
je 0x40afe8
push 0x402a50
push edi
call esi
push eax
call fcn.00405075
pop ecx
mov dword [0x42bfd0], eax
mov eax, dword [0x42bfd0]
cmp eax, ebx
je 0x40b040
cmp dword [0x42bfd4], ebx
je 0x40b040
push eax
call fcn.004050f0
push dword [0x42bfd4]
mov esi, eax
call fcn.004050f0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b040
test edi, edi
je 0x40b040
call esi
test eax, eax
je 0x40b037
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b037
test byte [ebp - 0xc], 1
jne 0x40b040
or dword [ebp + 0x10], 0x200000
jmp 0x40b079
mov eax, dword [0x42bfc8]
cmp eax, ebx
je 0x40b079
push eax
call fcn.004050f0
pop ecx
test eax, eax
je 0x40b079
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b079
mov eax, dword [0x42bfcc]
cmp eax, ebx
je 0x40b079
push eax
call fcn.004050f0
pop ecx
test eax, eax
je 0x40b079
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42bfc4]
call fcn.004050f0
pop ecx
test eax, eax
je 0x40b099
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b09b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x710c7d
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x7109ec
add edx, 0x171e5909
call fcn.00710cba
sub ecx, 0xdc141fa5
xor dword [edi], eax
sub edx, 0xe89142c9
sub ecx, 0x56e09589
add edx, 0xbb9a7663
inc edi
add edx, 0xf36d1f10
cmp edi, ebx
jne fcn.00710c7d
add ecx, ecx
push ecx
pop edx
ret
Function at 0x100010f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.1001544f
Function at 0x10010690
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x18]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], ecx
movzx ecx, word [eax + 0x14]
push ebp
xor edx, edx
push esi
push edi
lea ecx, [ecx + eax + 0x18]
mov dword [esp + 0x10], 0
cmp dx, word [eax + 6]
jae 0x10010774
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea esi, [ecx + 0x10]
lea esp, [esp]
mov eax, dword [esi]
test eax, eax
jne 0x1001070c
mov eax, dword [esp + 0x24]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x10010756
mov ecx, dword [esi - 4]
push 4
push 0x1000
push edi
add ecx, ebx
push ecx
call ebp
test eax, eax
je 0x10010783
mov eax, dword [esi - 4]
push edi
add eax, ebx
push 0
push eax
mov dword [esi - 8], eax
call fcn.10010540
jmp 0x10010753
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x14]
add edx, eax
mov eax, dword [esp + 0x20]
push edx
push eax
call fcn.10010670
test eax, eax
je 0x10010783
mov ecx, dword [esi]
mov edx, dword [esi - 4]
push 4
push 0x1000
push ecx
add edx, ebx
push edx
call ebp
test eax, eax
je 0x10010783
mov ecx, dword [esi + 4]
mov eax, dword [esi]
add ecx, dword [esp + 0x1c]
mov edi, dword [esi - 4]
push eax
add edi, ebx
push ecx
push edi
call fcn.10010570
mov dword [esi - 8], edi
add esp, 0xc
mov edx, dword [esp + 0x28]
mov ecx, dword [edx]
mov eax, dword [esp + 0x10]
movzx edx, word [ecx + 6]
inc eax
add esi, 0x28
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x100106d0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x10
Function at 0x10010870
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
mov ebx, dword [ebp + 0x30]
push esi
mov esi, dword [ebp]
movzx eax, word [esi + 0x14]
push edi
lea edi, [eax + esi + 0x18]
mov eax, dword [edi + 8]
dec ebx
not ebx
push edi
and ebx, eax
push ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
call fcn.10010790
mov ecx, dword [edi + 0x24]
mov edx, 1
add edi, 0x28
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x14], 1
cmp dx, word [esi + 6]
jae 0x10010987
mov esi, dword [ebp + 0x30]
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x10]
dec esi
push edi
not esi
push ebp
mov dword [esp + 0x3c], eax
and esi, eax
call fcn.10010790
mov dword [esp + 0x18], eax
cmp ebx, esi
je 0x10010937
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
add ecx, edx
cmp ecx, esi
ja 0x10010937
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push ebp
call fcn.100107c0
test eax, eax
je 0x100109ae
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x18]
mov eax, dword [edi + 0x24]
mov ebx, esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
jmp 0x1001096c
mov ecx, dword [edi + 0x24]
test ecx, 0x2000000
je 0x10010952
test dword [esp + 0x28], 0x2000000
je 0x10010952
or dword [esp + 0x28], ecx
jmp 0x10010960
or ecx, dword [esp + 0x28]
and ecx, 0xfdffffff
mov dword [esp + 0x28], ecx
sub eax, dword [esp + 0x1c]
add eax, dword [esp + 0x34]
mov dword [esp + 0x24], eax
mov ecx, dword [ebp]
mov eax, dword [esp + 0x14]
movzx edx, word [ecx + 6]
inc eax
add edi, 0x28
cmp eax, edx
mov dword [esp + 0x14], eax
jl 0x100108d1
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push ebp
mov dword [esp + 0x34], 1
call fcn.100107c0
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x20
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 4