joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ef13
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x100220e0]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [ebp + 0x98]
push ebx
push esi
push edi
xor esi, esi
push 0x103
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x77]
push esi
push eax
mov dword [ebp - 0x80], esi
mov byte [ebp - 0x78], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
push 1
push 0x23
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x1000ef77
push str.c:windows_temp
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [ebp + 0x9c], esi
je 0x1000ef9d
lea eax, [ebp - 0x78]
push eax
call edi
cmp eax, 0xffffffff
jne 0x1000ef9d
push esi
lea eax, [ebp - 0x78]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.Thunder_Network
lea eax, [ebp - 0x78]
push eax
call esi
cmp dword [ebp + 0x9c], 0
je 0x1000efca
lea eax, [ebp - 0x78]
push eax
call edi
cmp eax, 0xffffffff
jne 0x1000efca
push 0
lea eax, [ebp - 0x78]
push eax
call ebx
push 0x100186b4
lea eax, [ebp - 0x78]
push eax
call esi
cmp dword [ebp + 0x9c], 0
je 0x1000eff1
lea eax, [ebp - 0x78]
push eax
call edi
cmp eax, 0xffffffff
jne 0x1000eff1
push 0
lea eax, [ebp - 0x78]
push eax
call ebx
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [ebp + 0x8c]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10015494
add ebp, 0x90
leave
ret
Function at 0x10013640
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1002233c]
mov dword [ebp - 4], eax
jmp 0x10013659
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10013676
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10013650
mov esp, ebp
pop ebp
ret

Function at 0x10013680
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1002234c], eax
je 0x1001369e
mov eax, 0x10dd
jmp 0x1001377f
mov eax, dword [0x1002235c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1001371c
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x100136fa
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x100136fa
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.100137f0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x100136a6
mov dword [0x1002235c], 0
call fcn.10013790
mov ecx, dword [0x10022358]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x10013769
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x10013734
mov dword [0x10022358], 0
mov dword [0x1002234c], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10013cf0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x10013d05
xor eax, eax
jmp 0x10013d7a
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0x10000
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x10013d32
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x38d
jae 0x10013d75
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x48
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx + 0x40], 0
je 0x10013d73
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x10013d6f
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x10013d73
xor eax, eax
jmp 0x10013d7a
jmp 0x10013d29
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10013e20
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10022350], 0
je 0x10013e39
mov eax, dword [0x10022350]
jmp 0x10013ed9
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x10013e4b
xor eax, eax
jmp 0x10013ed9
push 8
call fcn.100155be
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10013ea1
mov dword [ebp - 4], 8
cmp dword [ebp - 8], 0
je 0x10013e8a
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov dword [0x10022350], eax
mov dword [0x10022354], 0
mov eax, dword [ebp - 4]
jmp 0x10013ed9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10013ebb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x10013e6b
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [0x10022358]
mov dword [ecx], edx
mov eax, dword [ebp - 8]
mov dword [0x10022358], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x100146f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.100147c0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x100147ac
cmp dword [ebp - 4], 0x50000000
jb 0x1001472c
cmp dword [ebp - 4], 0x80000000
ja 0x1001472c
mov dword [ebp - 4], 0x80010000
jmp 0x10014705
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10014752
jmp 0x100147ac
cmp dword [ebp - 0x10], 0x10000
jne 0x10014795
cmp dword [ebp - 0x14], 0x10000
jb 0x10014795
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x10014788
mov eax, dword [ebp - 0x24]
jmp 0x100147ae
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100147a7
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.100147c0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10014705
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100147f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.100148c0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x100148b4
cmp dword [ebp - 4], 0x50000000
jb 0x10014831
cmp dword [ebp - 4], 0x80000000
ja 0x10014831
mov dword [ebp - 4], 0x4fff0000
jmp 0x1001480a
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10014857
jmp 0x100148b4
cmp dword [ebp - 0x10], 0x10000
jne 0x1001489a
cmp dword [ebp - 0x14], 0x10000
jb 0x1001489a
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x1001488d
mov eax, dword [ebp - 0x24]
jmp 0x100148b6
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100148af
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.100148c0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1001480a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10015494
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100220e0]
jne 0x1001549e
repz ret
jmp fcn.10015c19

Function at 0x40147e
Capabilities:
Encode data using xor

Disassembly:
xor dx, dx
mov esi, edi
lodsb al, byte [esi]
xchg cl, dl
ror al, cl
xor al, cl
xchg cl, dl
xor al, ah
stosb byte es:[edi], al
inc dx
loop 0x401483
ret

Function at 0x401494
Capabilities:
Encode data using xor

Disassembly:
xor dx, dx
mov esi, edi
lodsb al, byte [esi]
xor al, ah
xchg cl, dl
xor al, cl
rol al, cl
xchg cl, dl
stosb byte es:[edi], al
inc dx
loop 0x401499
ret
Function at 0x4208f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00416caa
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x420928
xor eax, eax
jmp 0x420954
cmp esi, dword [ebp - 4]
je 0x420951
cmp dword [ebp + 0xc], 0
je 0x420951
push dword [edi + 0x9c]
call fcn.004204fe
push dword [edi + 0x9c]
mov esi, eax
call fcn.00411fb6
pop ecx
pop ecx
cmp esi, eax
je 0x420924
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x40f080
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
or ebp, 0xffffffff
jmp 0x40f0a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f0a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f098
mov eax, 1
add ebx, ebx
jne 0x40f0bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f0b0
jne 0x40f0cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0b0
xor ecx, ecx
sub eax, 3
jb 0x40f0e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f152
mov ebp, eax
add ebx, ebx
jne 0x40f0eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f0f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f11c
inc ecx
add ebx, ebx
jne 0x40f108
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f0fd
jne 0x40f119
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f13c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f12d
jmp 0x40f09e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f13c
add edi, ecx
jmp 0x40f09e
pop esi
mov edi, esi
mov ecx, 0x265
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f15a
cmp byte [edi], 2
jne 0x40f15a
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 0x40f15f
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f1ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f18c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf068]
or eax, eax
je 0x40f1c8
mov dword [ebx], eax
add ebx, 4
jmp 0x40f1a9
call dword [esi + 0xf06c]
popal
jmp 0x40354a
Function at 0x4350e0
Capabilities:
Parse pe header

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

Function at 0x4379a0
Capabilities:
Parse pe header

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

Function at 0x437d4d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x442778
push 0x442770
push str.FlsAlloc
push 0x1f
call fcn.00438030
mov esi, eax
add esp, 0x10
test esi, esi
je 0x437d81
push dword [ebp + 8]
mov ecx, esi
call dword [section..usa]
call esi
jmp 0x437d87
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x437dcb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x442788
push 0x442780
push str.FlsGetValue
push 0x21
call fcn.00438030
mov esi, eax
add esp, 0x10
test esi, esi
je 0x437e02
push dword [ebp + 8]
mov ecx, esi
call dword [section..usa]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x437e0a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x442790
push 0x442788
push str.FlsSetValue
push 0x22
call fcn.00438030
mov esi, eax
add esp, 0x10
test esi, esi
je 0x437e44
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..usa]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x43b87e
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 0x43b91b
push ebx
push esi
call fcn.0043b91e
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.0043b782
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x43b8c8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43b91a
push edi
push eax
call fcn.0043a219
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x43b8e8
call fcn.004392d2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43b919
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0043b782
add esp, 0x20
test eax, eax
jne 0x43b907
push edi
call fcn.004392d2
jmp 0x43b90f
push ebx
call fcn.004392d2
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 0x49605f
Capabilities:
Decompress data using aplib
Packed with generic packer

Disassembly:
pushal
mov esi, 0x4961bd
mov edi, section.packerBY
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.004960e4
jae 0x49606f
xor ecx, ecx
call fcn.004960e4
jae 0x49609e
xor eax, eax
call fcn.004960e4
jae 0x4960ae
mov bl, 2
inc ecx
mov al, 0x10
call fcn.004960e4
adc al, al
jae 0x496090
jne 0x4960da
stosb byte es:[edi], al
jmp 0x496072
call fcn.004960f0
sub ecx, ebx
jne 0x4960b7
call fcn.004960ee
jmp 0x4960d6
lodsb al, byte [esi]
shr eax, 1
je 0x496100
adc ecx, ecx
jmp 0x4960d3
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.004960ee
cmp eax, 0x7d00
jae 0x4960d3
cmp ah, 5
jae 0x4960d4
cmp eax, 0x7f
ja 0x4960d5
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x496072
mov esi, section.packerBY
mov ecx, 4
mov edi, ecx
cmp esi, 0x404a06
jg 0x496124
lodsb al, byte [esi]
inc edi
add al, 0x18
sub al, 2
jae 0x49610c
sub dword [esi], edi
add esi, ecx
add edi, ecx
jmp 0x49610c
mov edx, 0x400000
lea esi, [edx + 0x1000]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x496187
add eax, edx
mov edi, dword [esi + 0x10]
mov ebx, dword [esi]
test ebx, ebx
jne 0x496143
mov ebx, edi
add ebx, edx
add edi, edx
push edx
push edi
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
pop edi
pop edx
test eax, eax
je 0x496185
mov ecx, eax
mov eax, dword [ebx]
test eax, eax
je 0x496180
btr eax, 0x1f
jb 0x496168
lea eax, [eax + edx + 2]
push ecx
push edx
push edi
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetProcAddress]
pop edi
pop edx
pop ecx
test eax, eax
je 0x496185
stosd dword es:[edi], eax
add ebx, 4
jmp 0x496158
add esi, 0x14
jmp 0x49612f
popal
ret
popal
jmp 0x401132
Function at 0x429280
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x4292a5
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x4292bd
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x4292ec
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x42932e
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x429402
sub edx, 0x10000
js 0x429402
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x429314
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x429314
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x429385
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x429382
add edx, 8
jne 0x429369
jmp 0x4293f3
add edx, 4
test eax, 0xffff
jne 0x429392
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x4293f3
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x4293c6
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x429314
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x429402
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x429314
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x429413
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0xb7119fa
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x2b0b72c6
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
push esi
push str.file
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4010fc
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4010fc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x4010fc
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x4010fb
mov ecx, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push ebx
push 0
push 4
push 0
push eax
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
test esi, esi
je 0x4010fb
push edi
push 0
push 0
push 0
push 2
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, dword [ebp + 8]
push ebx
mov edi, eax
push edx
push edi
call fcn.0040c250
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebp + 0xc]
push eax
call esi
pop edi
pop ebx
pop esi
pop ebp
ret 8

Function at 0x401110
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.0040c6b0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x1c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x401590
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x424ad0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.0040c6b0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0x4015e0
lea eax, [ebp + 0xc]
push 0
push eax
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp dword [ebp + 0x20], 0x10
jb 0x401602
mov eax, dword [ebp + 0xc]
push eax
call fcn.00401c11
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cb5c
mov esp, ebp
pop ebp
ret 0x1c