joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007c40e
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 + 0x100b29a0]
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 0x1007c44e
cmp byte [ebx], 0xa
jne 0x1007c44e
or byte [edi + eax + 0x28], 4
jmp 0x1007c453
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 0x1007c552
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1007c535
inc eax
cmp dl, 0xd
je 0x1007c47f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1007c4a5
cmp eax, ecx
jae 0x1007c4b3
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 0x1007c467
jmp 0x1007c552
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 0x1007c530
cmp dword [ebp - 0x10], 0
je 0x1007c530
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100b29a0]
test byte [eax + edi + 0x28], 0x48
je 0x1007c50a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1007c4f5
mov byte [esi], dl
jmp 0x1007c506
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100b29a0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1007c552
cmp byte [ebp - 1], 0xa
jne 0x1007c519
cmp esi, ebx
jne 0x1007c519
mov byte [esi], 0xa
jmp 0x1007c551
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1007cf94
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1007c552
mov byte [esi], 0xd
jmp 0x1007c551
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100b29a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1007c54f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1007c552
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1007c55b
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 + 0x100b29a0]
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 0x1007c5a1
cmp word [ebx], dx
jne 0x1007c5a1
or byte [eax + edi + 0x28], 4
jmp 0x1007c5a6
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 0x1007c709
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 0x1007c6e9
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1007c5e7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1007c61d
cmp eax, edx
jae 0x1007c62b
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 0x1007c5c2
jmp 0x1007c709
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 0x1007c6e4
cmp dword [ebp - 0x18], 0
je 0x1007c6e4
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100b29a0]
test byte [eax + edi + 0x28], 0x48
je 0x1007c6ba
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 0x1007c67e
mov word [esi], cx
jmp 0x1007c6b5
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100b29a0]
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 + 0x100b29a0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100b29a0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1007c709
pop eax
cmp word [ebp - 4], ax
jne 0x1007c6ca
cmp esi, ebx
jne 0x1007c6ca
mov word [esi], ax
jmp 0x1007c706
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1007cf94
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1007c709
push 0xd
pop eax
jmp 0x1007c6c5
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100b29a0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1007c703
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1007c709
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 0x1007f4ab
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 0x1007f548
push ebx
push esi
call fcn.1007f474
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.1007e2bd
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1007f4f5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1007f547
push edi
push eax
call fcn.100778f6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1007f515
call fcn.10075ba2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1007f546
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1007e2bd
add esp, 0x20
test eax, eax
jne 0x1007f534
push edi
call fcn.10075ba2
jmp 0x1007f53c
push ebx
call fcn.10075ba2
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 0x1007f54b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1007f55c
pop esi
ret
push ebx
push edi
push esi
call fcn.1007f474
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100778f6
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1007f584
push ebx
push esi
push edi
call fcn.10064c00
add esp, 0xc
push 0
call fcn.10075ba2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1007f954
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007f599

Function at 0x10081bd9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10075f46
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 0x10081c48
cmp esi, dword [ebp - 4]
je 0x10081c43
cmp dword [ebp + 0xc], 0
je 0x10081c43
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10081c20
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1008172b
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10081c4a
xor eax, eax
inc eax
jmp 0x10081c4a
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10081caf
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100b0040]
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.10075f46
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.10075f46
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 0x10081d26
cmp word [ecx], dx
je 0x10081d26
mov eax, dword [0x10094d64]
push edi
dec eax
push eax
push 0x10094c50
call fcn.10081c4e
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10081d99
cmp word [eax], dx
je 0x10081d99
mov eax, dword [edi]
test eax, eax
je 0x10081d4a
cmp word [eax], dx
je 0x10081d4a
lea eax, [ebp - 0x10]
push eax
call fcn.10081631
jmp 0x10081d53
lea eax, [ebp - 0x10]
push eax
call fcn.100816cc
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10081dc3
mov eax, dword [0x10094c4c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10094940
call fcn.10081c4e
add esp, 0xc
test al, al
je 0x10081dc3
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10081d8e
cmp word [eax], di
je 0x10081d8e
lea eax, [ebp - 0x10]
push eax
call fcn.10081631
pop ecx
jmp 0x10081dc5
lea eax, [ebp - 0x10]
push eax
call fcn.100816cc
jmp 0x10081d8b
mov eax, dword [edi]
test eax, eax
je 0x10081db0
cmp word [eax], dx
je 0x10081db0
lea eax, [ebp - 0x10]
push eax
call fcn.100815e6
pop ecx
jmp 0x10081dc3
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 0x10081e8e
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10081ad3
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10081e8e
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10081e8e
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10081e8e
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10081e1b
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1007a9a3
test ebx, ebx
je 0x10081e89
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1007a9a3
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10081e8e
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 0x10081e8e
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10084f41
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10081e90
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006222d
leave
ret
Function at 0x10086dd0
Capabilities:
Parse pe header

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

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x40a3d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x434c38]
jne 0x40a3da
repz ret
jmp fcn.0040e622

Function at 0x40be9c
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.00407f24
and dword [ebp - 4], 0
cmp dword [0x437208], 0
mov ebx, eax
jne 0x40bf4d
push 0x401b00
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40bffe
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401af4
push edi
call esi
test eax, eax
je 0x40bffe
push eax
call fcn.00407eb2
mov dword [esp], 0x401ae4
push edi
mov dword [0x437208], eax
call esi
push eax
call fcn.00407eb2
mov dword [esp], 0x401ad0
push edi
mov dword [0x43720c], eax
call esi
push eax
call fcn.00407eb2
mov dword [esp], 0x401ab4
push edi
mov dword [0x437210], eax
call esi
push eax
call fcn.00407eb2
pop ecx
mov dword [0x437218], eax
test eax, eax
je 0x40bf4d
push 0x401a9c
push edi
call esi
push eax
call fcn.00407eb2
pop ecx
mov dword [0x437214], eax
mov eax, dword [0x437214]
cmp eax, ebx
je 0x40bfa5
cmp dword [0x437218], ebx
je 0x40bfa5
push eax
call fcn.00407f2d
push dword [0x437218]
mov esi, eax
call fcn.00407f2d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40bfa5
test edi, edi
je 0x40bfa5
call esi
test eax, eax
je 0x40bf9c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40bf9c
test byte [ebp - 0xc], 1
jne 0x40bfa5
or dword [ebp + 0x10], 0x200000
jmp 0x40bfde
mov eax, dword [0x43720c]
cmp eax, ebx
je 0x40bfde
push eax
call fcn.00407f2d
pop ecx
test eax, eax
je 0x40bfde
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40bfde
mov eax, dword [0x437210]
cmp eax, ebx
je 0x40bfde
push eax
call fcn.00407f2d
pop ecx
test eax, eax
je 0x40bfde
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x437208]
call fcn.00407f2d
pop ecx
test eax, eax
je 0x40bffe
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c000
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5f9f2bf6
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
lea eax, [eax + 0xc]
mov edx, eax
cmp edx, eax
je 0x5f9f2c50
push eax
push 0x5f9f175a
call fcn.5f9f2c8e
push 7
push 0x5faa30bc
push dword [eax + 0x30]
call fcn.5f9f2fe7
cmp eax, 0
jne 0x5f9f2c2a
inc eax
jmp 0x5f9f2c52
push 0x5f9f1772
call fcn.5f9f2c8e
push 7
push 0x5faa30bc
push dword [eax + 0x30]
call fcn.5f9f2fe7
cmp eax, 0
jne 0x5f9f2c4b
inc eax
jmp 0x5f9f2c52
pop eax
mov eax, dword [eax]
jmp 0x5f9f2c04
xor eax, eax
ret

Function at 0x5f9f2c68
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov eax, dword fs:[0x30]
mov al, byte [eax + 0x68]
and al, 0x70
cmp al, 0x70
sete al
movzx eax, al
ret

Function at 0x5f9f2c7c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0x30]
mov al, byte [eax + 2]
test al, al
setne al
movzx eax, al
ret

Function at 0x5f9f2c8e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
lea edi, [0x5faa30bc]
mov esi, dword [ebp + 8]
lodsw ax, word [esi]
xor ax, 0xc7
stosw word es:[edi], ax
cmp ax, 0
jne 0x5f9f2c9c
pop edi
pop esi
leave
ret 4

Function at 0x5f9f2cb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
lea edi, [0x5faa30bc]
mov esi, dword [ebp + 8]
lodsb al, byte [esi]
xor al, 0xc7
stosb byte es:[edi], al
cmp al, 0
jne 0x5f9f2cbe
pop edi
pop esi
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x20]
mov edi, dword [edx + ebx]
test edi, edi
je 0x5f9f2f43
add edi, ebx
xchg esi, eax
push ecx
xor eax, eax
lea ecx, [eax - 1]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg esi, eax
mov esi, dword [ebp + 0xc]
repe cmpsb byte [esi], byte es:[edi]
pop ecx
jne 0x5f9f2f43
sub ecx, dword [eax + 0x18]
neg ecx
mov edx, dword [eax + 0x24]
add edx, ebx
movzx edx, word [edx + ecx*2]
mov eax, dword [eax + 0x1c]
add eax, ebx
mov eax, dword [eax + edx*4]
add eax, ebx
jmp 0x5f9f2f4a
add edx, 4
loop 0x5f9f2f0a
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 8

Function at 0x5f9f2f51
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
push esi
push edi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
lea ebp, [eax + 0xc]
mov eax, dword [ebp]
mov esi, dword [eax + 0x30]
movzx ecx, word [eax + 0x2e]
mov edi, dword [esp + 0x10]
mov dx, word [esi]
cmp dx, word [edi]
je 0x5f9f2f9d
cmp dx, 0x41
jb 0x5f9f2f82
cmp dx, 0x5a
jbe 0x5f9f2f88
cmp dx, 0x61
jb 0x5f9f2f94
cmp dx, 0x7a
ja 0x5f9f2f94
xor dx, 0x20
jmp 0x5f9f2f96
jmp 0x5f9f2fb0
cmp dx, word [edi]
je 0x5f9f2f9d
jmp 0x5f9f2fb0
add edi, 2
add esi, 2
sub ecx, 2
cmp ecx, 0
jne 0x5f9f2f6e
mov eax, dword [eax + 0x18]
jmp 0x5f9f2fb8
mov eax, dword [eax]
cmp ebp, eax
jne 0x5f9f2f63
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x5fa3ec90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x5f9f30e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x5f9f1400
xor esi, esi
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaRedim]
push esi
push 0x3f
push 1
push 0x11
push 0x5faa31d0
push 1
push pe_nt_image_headers32
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x40], esi
call edi
push esi
push esi
push 1
lea eax, [ebp - 0x30]
push esi
push eax
push 0x10
push 0x880
call edi
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x40], 3
add esp, 0x38
mov ecx, dword [eax + 0x14]
lea edx, [ebp - 0x40]
shl ecx, 4
mov edi, ecx
mov ecx, dword [eax + 0xc]
sub ecx, edi
call dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
mov eax, dword [0x5faa31f8]
lea edx, [ebp - 0x30]
mov ecx, 0xd
push edx
mov ebx, dword [eax + 0x14]
mov edx, dword [eax + 0xc]
sub ecx, ebx
mov eax, dword [edx + ecx*4]
push eax
call fcn.5f9f2d98
lea ecx, [ebp - 0x30]
mov ebx, eax
push ecx
push esi
call dword [sym.imp.MSVBVM60.DLL___vbaErase]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
lea edx, [ebp - 0x18]
push edx
push 0x5f9f8bcc
push 0x5f9f8bd4
mov dword [ebp - 0x14], ebx
call esi
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x24]
call edi
push eax
push 0x5f9f8bc4
call esi
mov edx, eax
lea ecx, [ebp - 0x28]
call edi
push eax
push 0x5f9f8bdc
call esi
mov edx, eax
lea ecx, [ebp - 0x2c]
call edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI4Str]
push eax
push 0x5f9f8bbc
push 0x5f9f8bc4
call esi
mov edx, eax
lea ecx, [ebp - 0x20]
call edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI4Str]
mov esi, dword [sym.imp.KERNEL32.DLL_VirtualProtect]
push eax
push ebx
call esi
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x28]
push eax
lea edx, [ebp - 0x24]
push ecx
lea eax, [ebp - 0x20]
push edx
push eax
push 4
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
mov ecx, dword [0x5faa31d0]
add esp, 0x14
lea edx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
mov edi, dword [eax + 0x14]
sub ecx, edi
push ecx
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
lea edx, [ebp - 0x1c]
mov edi, eax
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
push 0x40
push edi
mov edi, ebx
push edi
call fcn.5f9f306b
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x18]
push eax
push ecx
push 0x40
push edi
call esi
push 0x5fa3ee5e
jmp 0x5fa3ee5d
ret
Function at 0x401000
Capabilities:
Contain obfuscated stackstrings
Get hostname
Get networking interfaces
Identify system language via api
Link many functions at runtime
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x344
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push 0x407020
push 0x407088
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.GetVersionExA
push 0x407078
mov dword [esp + 0x88], eax
call esi
push eax
call edi
push 0x407010
push 0x407088
mov ebx, eax
call esi
push eax
call edi
push str.GetSystemInfo
push 0x407078
mov dword [esp + 0x74], eax
call esi
push eax
call edi
push str.GlobalMemoryStatusEx
push 0x407078
mov dword [esp + 0x90], eax
call esi
push eax
call edi
push str.RegQueryValueExA
push 0x407088
mov dword [esp + 0x94], eax
call esi
push eax
call edi
mov dword [esp + 0x7c], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov ebp, dword [esp + 0x358]
and eax, 0xffff
mov ecx, 0x27
lea edi, [esp + 0xd0]
jmp loc.0040d2da

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

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push ecx
mov dword [esp + 8], 0
jmp loc.0040ce90

Function at 0x401940
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x10]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret 8

Function at 0x401c64
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebx, 0x407164
push 0x407180
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x407188
push ebx
mov dword [ebp - 4], eax
call esi
push eax
call edi
cmp dword [0x407464], 0
mov dword [ebp - 8], eax
jmp loc.0040b4dc

Function at 0x401e67
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp + 0xc]
push 4
push eax
push 8
jmp loc.0040cab8

Function at 0x402130
Capabilities:
Contain obfuscated stackstrings
Create process on windows
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x384
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebx, 0x407144
push str.GetShortPathNameA
push ebx
call esi
jmp loc.0040d0d0