joyce8/EMBER2024-capa huggingface dataset:
Function at 0x590b50
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
xor eax, eax
push esi
push edi
lea ecx, [ebx + 4]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
call fcn.00410b60
cdq
and edx, 3
lea esi, [edx + eax]
sar esi, 2
lea ecx, [ebx + 0x20]
mov dword [ebp - 8], esi
call fcn.00410b60
cdq
and edx, 3
add eax, edx
sar eax, 2
lea ecx, [ebx + 4]
mov dword [ebp - 0x14], eax
call fcn.00410b80
lea ecx, [ebx + 0x20]
mov dword [ebp - 0xc], eax
call fcn.00410b80
xor edi, edi
mov dword [ebp - 0x18], eax
test esi, esi
jle 0x590c08
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
movzx esi, byte [eax + ecx]
inc eax
cdq
idiv ebx
shl esi, 8
inc edi
movzx ecx, byte [edx + ecx]
lea eax, [edx + 1]
cdq
idiv ebx
mov eax, dword [ebp + 8]
or ecx, esi
shl ecx, 8
movzx esi, byte [edx + eax]
lea eax, [edx + 1]
cdq
idiv ebx
or esi, ecx
mov ecx, dword [ebp + 8]
shl esi, 8
movzx ecx, byte [edx + ecx]
lea eax, [edx + 1]
cdq
idiv ebx
mov eax, dword [ebp - 0xc]
or ecx, esi
xor dword [eax + edi*4 - 4], ecx
mov dword [ebp - 4], edx
cmp edi, dword [ebp - 8]
jl 0x590bb1
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
xor edi, edi
test esi, esi
jle 0x590c34
mov edi, edi
push 0
lea edx, [ebp - 0x20]
push edx
mov ecx, ebx
call fcn.00590a50
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [eax + edi*4], ecx
mov dword [eax + edi*4 + 4], edx
add edi, 2
cmp edi, esi
jl 0x590c10
mov edi, dword [ebp - 0x14]
xor esi, esi
test edi, edi
jle 0x590c64
lea ecx, [ecx]
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
call fcn.00590a50
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [eax + esi*4], ecx
mov dword [eax + esi*4 + 4], edx
add esi, 2
cmp esi, edi
jl 0x590c40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x590ec0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ax, word [ebp + 0xc]
xor edx, edx
sub esp, 0x18
cmp dx, ax
jae 0x590fee
push ebx
push esi
mov esi, dword [ebp + 8]
lea edx, [ecx + 4]
movzx eax, ax
add ecx, 0x20
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
call fcn.00410b80
mov ecx, dword [ebp - 0x14]
mov edi, eax
mov dword [ebp + 0xc], edi
call fcn.00410b80
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor ecx, dword [edi]
xor esi, esi
jmp 0x590f20
mov edi, ecx
and edi, 0xff0000
or edi, 0x1000000
shr edi, 0x10
mov edi, dword [eax + edi*4]
mov ebx, ecx
shr ebx, 0x18
add edi, dword [eax + ebx*4]
mov ebx, ecx
and ebx, 0xff00
or ebx, 0x20000
shr ebx, 8
xor edi, dword [eax + ebx*4]
mov ebx, ecx
and ebx, 0xff
or ebx, 0x300
add edi, dword [eax + ebx*4]
mov ebx, dword [ebp + 0xc]
xor edi, dword [ebx + esi*4 + 4]
add esi, 2
xor edx, edi
mov edi, edx
and edi, 0xff0000
or edi, 0x1000000
shr edi, 0x10
mov edi, dword [eax + edi*4]
mov ebx, edx
shr ebx, 0x18
add edi, dword [eax + ebx*4]
mov ebx, edx
and ebx, 0xff00
or ebx, 0x20000
shr ebx, 8
xor edi, dword [eax + ebx*4]
mov ebx, edx
and ebx, 0xff
or ebx, 0x300
add edi, dword [eax + ebx*4]
mov ebx, edi
mov edi, dword [ebp + 0xc]
xor ebx, dword [edi + esi*4]
xor ecx, ebx
cmp esi, 0xe
jbe 0x590f20
mov esi, dword [edi + 0x44]
mov eax, dword [ebp - 4]
xor esi, edx
mov edx, dword [ebp + 8]
mov dword [edx + eax*4], esi
mov esi, dword [ebp - 8]
mov dword [edx + eax*4 + 4], ecx
add eax, 2
add esi, 8
dec dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], esi
jne 0x590ef7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x591a10
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x676664]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea ecx, [esi + 0x28]
call fcn.00410b70
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x591a8a
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0
je 0x591a4a
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov dword [esi + 0x118], edx
jmp 0x591a54
mov dword [esi + 0x118], 0
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
lea ecx, [eax + 3]
push ecx
lea edx, [eax + 2]
push edx
lea ecx, [eax + 1]
push ecx
push eax
push str._b._b._b._b
lea edx, [ebp - 0x2c]
push 0x28
push edx
call fcn.00441fa0
add esp, 0x1c
lea eax, [ebp - 0x2c]
push eax
lea ecx, [esi + 0xa0]
call fcn.00445fe0
jmp 0x591a95
lea ecx, [esi + 0xa0]
call fcn.004439b0
mov ecx, dword [ebp - 4]
mov byte [esi + 0x114], 0
xor ecx, ebp
pop esi
call fcn.0059af98
mov esp, ebp
pop ebp
ret
Function at 0x5964e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b62ab
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x676664]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor ebx, ebx
lea ecx, [esi + 0x10]
mov dword [esi], vtable.BufferedSource.0
mov dword [esi + 8], 0xfa0
mov dword [esi + 0xc], ebx
call fcn.00410e50
push 0x1388
lea ecx, [esi + 0x10]
mov dword [ebp - 4], ebx
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov byte [esi + 0x40], bl
call fcn.004156b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x59af98
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x676664]
jne 0x59afa2
repz ret
jmp fcn.0059b939
Function at 0x403300
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c7e0
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x43a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x214], esi
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 0x10
jb 0x40336e
mov eax, dword [eax]
sub esp, 0x14
push eax
push ecx
lea ecx, [ebp - 0x224]
call fcn.00403230
test eax, eax
je 0x4033b5
push 0
mov dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 0xf
push 0x434f7a
mov byte [esi], 0
call fcn.004022a0
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x40343e
push eax
jmp 0x403438
cmp dword [edi + 0x14], 0x10
jb 0x4033bd
mov edi, dword [edi]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0x200
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push edi
mov edi, dword [ebp - 0x224]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403414
mov eax, dword [ebp - 0x214]
cmp eax, 1
je 0x403400
cmp eax, 2
jne 0x403414
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x40345b
cmp byte [ebp + eax - 0x211], 0
je 0x403462
push 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
push 0x434f7a
mov ecx, esi
call fcn.004022a0
test edi, edi
je 0x40343e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f469
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x210], 0
lea ecx, [ebp - 0x210]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
lea edx, [ecx + 1]
mov byte [esi], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403480
sub ecx, edx
lea eax, [ebp - 0x210]
push ecx
push eax
jmp 0x40342c

Function at 0x4034a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [edx + 0x14], 0x10
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
jb 0x4034c3
mov edx, dword [edx]
push ebx
push edi
sub esp, 0x14
push edx
push ecx
lea ecx, [ebp - 0xc]
call fcn.00403230
mov edi, dword [ebp - 0xc]
test eax, eax
je 0x4034dd
xor bl, bl
jmp 0x403522
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x14], 0x10
jb 0x4034e8
mov edx, dword [edx]
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0x10
jb 0x4034f4
mov esi, dword [esi]
test edx, edx
jne 0x4034fd
lea eax, [edx + 0xd]
jmp 0x40351c
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403502
sub ecx, ebx
lea eax, [ecx + 1]
push eax
push edx
push 1
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
sete bl
test edi, edi
je 0x40352d
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4096d0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x43a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
mov esi, ecx
lea eax, [ebp - 0x218]
push 0
mov dword [ebp - 0x234], esi
push eax
mov dword [ebp - 0x234], esi
call fcn.004136c0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0x104
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004136c0
add esp, 0xc
lea eax, [ebp - 0x218]
push str...configlocal
push eax
push str._s_s
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0040cf00
lea ecx, [ebp - 0x110]
add esp, 0x14
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409770
sub ecx, edx
je 0x409829
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x409843
push eax
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
test eax, eax
je 0x409843
cmp dword [0x43ba80], 0
je 0x409829
lea ecx, [ebp - 0x230]
call fcn.004011a0
mov edi, eax
cmp dword [edi + 0x14], 0x10
jb 0x4097ca
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x110]
push eax
push 0x77
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCaByodProxyInstCa.cpp
push edi
push str._ERROR___s__s:_d_tCreateDirectory__s_Failed__lasterror_u_n
push dword [0x43ba80]
call fcn.00402120
mov edx, dword [ebp - 0x21c]
add esp, 0x1c
cmp edx, 0x10
jb 0x409829
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40981f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40988a
push edx
push ecx
call fcn.0040f6ee
add esp, 8
mov dword [esi + 0x10], 0
push 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
push 0x434f7a
jmp 0x409871
lea ecx, [ebp - 0x110]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
lea edx, [ecx + 1]
mov byte [esi], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409860
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
mov ecx, esi
call fcn.004022a0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0040f469
mov esp, ebp
pop ebp
ret
call fcn.00415003
int3
Function at 0x40adf0
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x43a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, edx
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x40ae10
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40af0c
cmp dword [edi + 0x14], 0x10
jb 0x40ae27
mov edi, dword [edi]
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40ae31
mov eax, dword [esi]
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40aec6
cmp dword [0x43ba80], eax
je 0x40af5b
lea ecx, [ebp - 0x1c]
call fcn.004011a0
cmp dword [esi + 0x14], 0x10
mov edi, eax
jb 0x40ae61
mov esi, dword [esi]
cmp dword [edi + 0x14], 0x10
jb 0x40ae69
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1c9
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCaByodProxyInstCa.cpp
push edi
push str._ERROR___s__s:_d_tcopy_strSrc:_s_failed__error_u_n
push dword [0x43ba80]
call fcn.00402120
add esp, 0x1c
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x40af5b
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40af51
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40af6b
jmp 0x40af51
cmp dword [0x43ba80], 0
je 0x40af5b
lea ecx, [ebp - 0x1c]
call fcn.004011a0
cmp dword [esi + 0x14], 0x10
jb 0x40aee3
mov esi, dword [esi]
cmp dword [eax + 0x14], 0x10
jb 0x40aeeb
mov eax, dword [eax]
push esi
push 0x1cd
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCaByodProxyInstCa.cpp
push eax
push str._ERROR___s__s:_d_tcopy_strSrc:_s_success_n
push dword [0x43ba80]
call fcn.00402120
add esp, 0x18
jmp 0x40ae8f
cmp dword [0x43ba80], 0
je 0x40af5b
lea ecx, [ebp - 0x1c]
call fcn.004011a0
cmp dword [esi + 0x14], 0x10
jb 0x40af25
mov esi, dword [esi]
cmp dword [eax + 0x14], 0x10
jb 0x40af2d
mov eax, dword [eax]
push esi
push 0x1d2
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCaByodProxyInstCa.cpp
push eax
push str._ERROR___s__s:_d_tcopy_strSrc:_s_failed_strSrc_not_exist_n
push dword [0x43ba80]
call fcn.00402120
add esp, 0x18
jmp 0x40ae8f
push edx
push ecx
call fcn.0040f6ee
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040f469
mov esp, ebp
pop ebp
ret
call fcn.00415003
int3
Function at 0x410ad0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cff0
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x43a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x274], 0
push 4
lea ecx, [ebp - 0x1c]
call fcn.00411e00
lea eax, [ebp - 0x1c]
push eax
call fcn.00412620
add esp, 4
mov dword [ebp - 4], 0
push 4
lea ecx, [ebp - 0x18]
call fcn.00411e00
lea ecx, [ebp - 0x1c]
push ecx
push 0
push str...Dump_
lea edx, [ebp - 0x284]
push edx
call fcn.00412650
add esp, 0xc
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x280], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x280]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.004106e0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x284]
call fcn.00410630
push 4
lea ecx, [ebp - 0x14]
call fcn.00411e00
push str..dmp
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.004107c0
add esp, 0xc
push 0x250
push 0
lea edx, [ebp - 0x26c]
push edx
call fcn.004136c0
add esp, 0xc
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x14]
call fcn.004106d0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x270], eax
cmp dword [ebp - 0x270], 0xffffffff
je 0x410c23
mov dword [ebp - 0x278], 1
cmp dword [ebp - 0x278], 0
je 0x410c16
mov ecx, dword [ebp - 0x274]
add ecx, 1
mov dword [ebp - 0x274], ecx
lea edx, [ebp - 0x26c]
push edx
mov eax, dword [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x278], eax
jmp 0x410be2
mov ecx, dword [ebp - 0x270]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x274]
mov dword [ebp - 0x288], edx
lea ecx, [ebp - 0x14]
call fcn.00410630
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00410630
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00410630
mov eax, dword [ebp - 0x288]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f469
mov esp, ebp
pop ebp
ret
Function at 0x4123b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4123ed
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4123e7
mov eax, dword [ebp - 4]
push eax
call fcn.004024e0
add esp, 4
jmp 0x4123f2
xor eax, eax
jmp 0x4123f2
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x412880
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4128a4
xor eax, eax
jmp 0x412924
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4128bb
xor eax, eax
jmp 0x412924
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x412907
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x412907
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x4128de
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x412913
xor eax, eax
jmp 0x412924
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x412921
xor eax, eax
jmp 0x412924
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x42059e
Capabilities:
Read file on windows

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

Function at 0x42530d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00424f8a
Function at 0x408320
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x44
call fcn.004017a0
mov eax, dword [0x40c044]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x25], 0x73695371
mov dword [ebp - 0x21], 0x67734f48
mov dword [ebp - 0x1d], 0x48685579
mov dword [ebp - 0x19], 0x58577261
mov dword [ebp - 0x15], 0x6c5a444c
mov dword [ebp - 0x11], 0x6c6c642e
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x25]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call eax
sub esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x4083ab
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_load_DLL._Error_code:__d_n
call fcn.00408434
mov eax, 1
jmp 0x40841a
mov dword [esp + 4], str.nLROpiKmgGKRRfmFFcwl
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x408400
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_get_function_address._Error_code:__d_n
call fcn.00408434
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call eax
sub esp, 4
mov eax, 1
jmp 0x40841a
mov eax, dword [ebp - 0x34]
call eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call eax
sub esp, 4
mov eax, 0
mov edx, dword [ebp - 0xc]
sub edx, dword [0x40c044]
je 0x40842a
call fcn.004016b0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x40b458
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
mov dword [esp + 4], ebx
mov eax, dword [ebx + 0x3c]
mov eax, dword [ebx + eax + 0x78]
mov dword [esp], eax
call fcn.00412360
mov dword [esp + 4], ebx
lea esi, [ebx + eax]
mov eax, dword [esi + 0x20]
mov dword [esp], eax
call fcn.00412360
mov dword [esp + 4], ebx
add eax, ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x24]
mov dword [esp], eax
call fcn.00412360
add eax, ebx
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x24], eax
lea eax, [edi + edi]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x24], edi
je 0x40b51c
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], ebx
mov eax, dword [eax + edi*4]
mov dword [esp], eax
call fcn.00412360
lea ecx, [ebx + eax]
mov dword [esp], ecx
mov dword [ebp - 0x2c], ecx
call fcn.0040ba50
mov ecx, dword [ebp - 0x2c]
cmp eax, 0xa6caa1c5
jne 0x40b50a
mov dword [esp + 4], ebx
mov eax, dword [esi + 0x1c]
mov dword [esp], eax
call fcn.00412360
mov edx, dword [ebp - 0x28]
mov dword [esp + 4], ebx
add eax, ebx
movzx edx, word [edx]
mov eax, dword [eax + edx*4]
mov dword [esp], eax
call fcn.00412360
jmp 0x40b51e
mov dword [esp], ecx
inc edi
call fcn.0040ba50
cmp eax, 0xffe885ef
jne 0x40b4aa
jmp 0x40b4e2
xor eax, eax
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret

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

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18
mov eax, dword [0x417338]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 0x48e]
test eax, eax
je 0x40b633
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0x444]
test edx, edx
jne 0x40b633
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], 0
mov esi, dword [eax + ecx + 0x78]
add esi, eax
mov ecx, dword [esi + 0x24]
mov edi, dword [esi + 0x20]
mov ebx, dword [esi + 0x1c]
add ecx, eax
add edi, eax
mov dword [ebp - 0x20], ecx
mov ecx, dword [esi + 0x18]
add ebx, eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ebx
xor ebx, ebx
mov edi, dword [ebp - 0x10]
cmp dword [ebp - 0x1c], edi
je 0x40b62a
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x10]
mov esi, dword [edi + esi*4]
cmp word [eax + esi], 0x775a
jne 0x40b625
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x10]
test ebx, ebx
movzx esi, word [edi + esi*2]
jne 0x40b603
mov edi, dword [ebp - 0x18]
mov ebx, dword [edi + esi*4]
add ebx, eax
jmp 0x40b625
mov ecx, dword [ebp - 0x18]
mov edi, dword [ecx + esi*4]
add edi, eax
mov esi, edi
sub edi, ebx
mov ecx, edi
cmp ebx, esi
jbe 0x40b61b
mov edi, ebx
sub edi, esi
mov ecx, edi
test edx, edx
je 0x40b623
cmp edx, ecx
jbe 0x40b625
mov edx, ecx
inc dword [ebp - 0x10]
jmp 0x40b5d2
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x444], edx
add esp, 0x18
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret