joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6e2330
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x7c]
mov esi, dword [esp + 0x78]
lea ecx, [esp + 0x20]
mov ebx, dword [esp + 0x74]
mov dword [esp], eax
call fcn.0069fca4
push eax
mov edi, dword [esi + 0xc]
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [ebx + 0xc]
mov ebp, dword [esi + 8]
mov dword [esp + 0x4c], edi
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 4]
mov ebx, dword [ebx]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x40], edx
mov dword [esp + 0x30], ebx
lea ebx, [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x48], ebp
mov dword [esp + 4], ebx
call fcn.006e8360
mov dword [esp + 0x18], ebx
mov edi, eax
test edi, edi
jle 0x6e241e
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x38]
sub eax, ebp
sub ebx, edx
sar eax, 3
sar ebx, 3
imul eax, eax, 0xeeeeeeef
imul ebx, ebx, 0xeeeeeeef
cmp eax, ebx
cmovle ebx, eax
cmp ebx, edi
cmovg ebx, edi
imul esi, ebx, 0x78
sar esi, 3
imul esi, esi, 0xeeeeeeef
test esi, esi
jle 0x6e2400
mov dword [esp], edx
mov ecx, ebp
mov dword [esp + 0x1c], edx
call fcn.005f7284
push eax
mov edx, dword [esp + 0x1c]
add ebp, 0x78
dec esi
add edx, 0x78
jmp 0x6e23e0
mov ecx, dword [esp + 0x18]
mov dword [esp], ebx
sub edi, ebx
call fcn.0069fc40
push edx
lea ecx, [esp + 0x20]
mov dword [esp], ebx
call fcn.0069fcec
push ecx
jmp 0x6e23a0
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x70]
mov dword [esp], eax
call fcn.0069fca4
push eax
mov eax, dword [esp + 0x70]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6e243c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x7c]
mov ebp, dword [esp + 0x78]
lea esi, [esp + 0x20]
mov ebx, dword [esp + 0x74]
mov ecx, esi
mov dword [esp], eax
call fcn.0069fdec
push edi
mov edi, dword [ebp + 8]
mov edx, dword [ebp]
mov eax, dword [ebp + 4]
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x48], edi
mov edi, dword [ebp + 0xc]
mov ebp, dword [ebx + 8]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x4c], edi
mov edi, dword [ebx + 4]
mov ebx, dword [ebx]
mov dword [esp], eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
lea ebx, [esp + 0x30]
mov dword [esp + 4], ebx
call fcn.006e83d0
mov dword [esp + 0x18], ebx
mov ebp, eax
mov dword [esp + 0x1c], esi
test ebp, ebp
jle 0x6e2545
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
sub ebx, dword [esp + 0x14]
sub eax, dword [esp + 0x10]
sar ebx, 3
sar eax, 3
imul eax, eax, 0xcccccccd
imul ebx, ebx, 0xcccccccd
cmp eax, ebx
cmovle ebx, eax
cmp ebx, ebp
cmovg ebx, ebp
xor edx, edx
imul eax, ebx, 0x28
sar eax, 3
imul eax, eax, 0xcccccccd
test eax, eax
jle 0x6e2524
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
dec eax
lea edi, [esi + edx]
lea esi, [ecx + edx]
mov ecx, 9
add edx, 0x28
rep movsd dword es:[edi], dword [esi]
jmp 0x6e2505
mov ecx, dword [esp + 0x18]
mov dword [esp], ebx
sub ebp, ebx
call fcn.0069fd7c
push edx
mov ecx, dword [esp + 0x1c]
mov dword [esp], ebx
call fcn.0069fe34
push ecx
jmp 0x6e24b3
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x70]
mov dword [esp], eax
call fcn.0069fdec
push eax
mov eax, dword [esp + 0x70]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40944e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40945d
pop dword [ebp - 0x40]
mov eax, 0x40945d
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x3ba3a
push 0
mov eax, 0x6248d3cf
sub eax, 0x620681b7
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0xdc00a31d
sub ecx, 0xdc006406
mov edx, eax
mov ebx, 0x435400
add ebx, dword [ebp - 0x40]
mov edi, 0x598b1124
sub dword [ebp - 0x24], edi
mov esi, dword [ebx]
xor dword [ebp - 0x2c], ebx
add esi, edi
mov dword [ebp - 8], 0x109a1224
mov dword [edx], esi
add edx, 0xe049ab20
sub edx, 0xe049ab1c
add ebx, 4
loop 0x4094ab
add eax, 0x2432fb66
sub eax, 0x24320c37
mov ebx, eax
add eax, 0xb4abd18e
add eax, 0x4b542e77
mov ecx, 0x5b9014
sub ecx, 0x1b9014
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a6
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4010a3
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107c
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x401075
test ebp, ebp
je 0x401075
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107c
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x40109d
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x401bc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x401bd7
pop dword [ebp - 0x3c]
mov eax, 0x401bd7
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x28d9da72
sub dword [ebp - 0x4c], 0xda879527
mov dword [ebp - 0x48], 0x827d9977
sub dword [ebp - 0x48], 0x504a4d32
mov dword [ebp - 0x44], 0xf919e278
add dword [ebp - 0x44], 0x533261b6
mov dword [ebp - 0x40], 0xae6b79d8
add dword [ebp - 0x40], 0x51948628
lea eax, [ebp - 0x4c]
push eax
mov eax, 0x2c8619d3
add eax, 0xd3ba568d
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x4aa9f9c9
sub dword [ebp - 0x4c], 0xd6379073
mov dword [ebp - 0x48], 0x175c2c0f
add dword [ebp - 0x48], 0x2a103566
mov dword [ebp - 0x44], 0x58974295
add dword [ebp - 0x44], 0xad829d7
mov dword [ebp - 0x40], 0x78e3a6e2
add dword [ebp - 0x40], 0x871c591e
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0xaf7f6342
sub eax, 0xaf3ef242
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x33dc3
push 0
call eax
mov ecx, 0x3d24
mov edx, eax
mov ebx, 0x410000
add ebx, dword [ebp - 0x3c]
mov esi, 0xa5bede5c
mov edi, dword [ebx]
sub dword [ebp - 0x1c], ecx
add edi, esi
xor dword [ebp - 0x38], esi
mov dword [edx], edi
mov dword [ebp - 8], 0x51bc6371
add edx, 4
add ebx, 0xfac199bb
add ebx, 0x53e6649
loop 0x401ce2
add eax, 0xe763
mov ebx, eax
add eax, 0xfa5afb9e
add eax, 0x5a50467
mov ecx, 0xf1e0c680
add ecx, 0xe5f3980
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x413044], 1
mov dword [0x413040], 1
mov dword [0x41303c], 1
mov dword [0x413034], 1
jne 0x401060
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010c0
mov dword [0x413014], eax
mov eax, dword [0x413050]
test eax, eax
je 0x4010b0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x413064]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x41304c]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x410020], 1
je 0x4010f0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x40107a
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401060
cmp dword [ecx + 0x84], 0xe
jbe 0x401060
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401060
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401060
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401060
Function at 0x401dd0
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 0x401e30
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x413058]
test esi, esi
jle 0x401f50
mov eax, dword [0x41305c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x401e64
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401ee7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401e50
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401f77
mov eax, dword [0x41305c]
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 [0x41305c]
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 0x401f57
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401ee0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401ef0
add dword [0x413058], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x41305c]
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 0x401ee0
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, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x401e6e
mov eax, dword [0x41305c]
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, [esi]
nop
Function at 0x402410
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x413074
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x41306c]
sub esp, 4
test ebx, ebx
je 0x402465
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
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40245e
test esi, esi
je 0x40245e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402440
mov dword [esp], 0x413074
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402790
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4027b5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4027c0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4027b5
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 esi, esi
je 0x402808
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4027fe
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40280a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4027f0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x434c4e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47162c]
jne 0x434c58
repz ret
jmp fcn.0043ef82

Function at 0x439818
Capabilities:
Encode data using xor

Disassembly:
inc esi
xchg ebx, edi
dec ecx
mov ebp, 0xd7812c69
mov ch, dl
xchg ebx, ebx
imul edi, edi, 0
mov ebx, eax
xor esi, 0x440c735e
mov cl, ch
add edi, 0xfffff883
adc eax, ecx
sub edi, 0x417
imul ebx, eax, 0x13a0baed
lea esi, [0x48ddb22c]
mov ah, 0xea
add edx, edi
lea ebp, [0x1356ea70]
or ecx, eax
add edx, 0xb95
dec ah
inc ebp
sbb eax, 0x401589ae
mov eax, 0xcc08662d
mov ebp, 0x81414603
xchg ch, bl
adc eax, 0x5a7b5eab
cmp edx, 0x417
jl fcn.00439818
inc ah
or esi, eax
mov ch, 0x41
push esi
push 0xb393ad
inc edi
call 0x4398cc
imul ebx, edi
mov bh, 0xf5
add cl, dh
test ch, 0xb9
xchg edi, esi
mov ebp, 0x68b294e6
xchg al, al
mov ah, dl
lea esi, [0xdad6cbbb]
add edx, 0x72e2
xchg al, bl
test esi, edx
test eax, 0x9cd79f36
sub edx, 0x3e6
pop edx
xchg al, bh
mov esi, eax
sub esi, esi
sbb eax, 0xe287f2c4
mov ah, 0x4d
xchg al, ah
cmp ecx, 0x567c
jne 0x4398ec
imul eax, ebp
mov esi, eax
and ebp, edi
or eax, ebx
imul esi, edi, 0x239910a9
lea edi, [0x6e649fd9]
sub ecx, ecx
test esi, edi
mov ecx, 0x5e913
mov eax, 0x5c96603
or al, dl
sub ecx, 0xa1c
imul ebp, ebx
imul ebx, ebx, 0
sub edi, edx
imul edi, edx, 0xafaae5dc
xadd ebx, ecx
or eax, 0xa0cf4bb0
imul esi, edi, 0x19909f
xor ebx, 0xf81
lea ebp, [0x3c3f517f]
imul ecx, ebp, 0xdd7c9e83
add edx, ebx
test esi, 0x179a0a87
test ecx, 0x188f12cc
movzx edi, bl
add edx, 0x4ee
jmp 0x43995f
sub ebp, ebx
cmp ebx, ebx
or ch, ah
mov al, 0x29
sbb al, dh
push edi
push 0x36263
lea ebp, [0x423c56b4]
imul ebx, ebp
push ebp
push 0x768b09
add esi, edi
test ebp, edi
cmp cl, bh
push edx
mov eax, 0x538bc742
or bl, 0xe7
xchg esi, ebp
ret
Function at 0x44a8ac
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47162c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004414f2
and dword [ebp - 0x14], 0
cmp dword [0x474ff8], 0
mov dword [ebp - 0x18], eax
jne 0x44a95f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x44aa07
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x44aa07
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x474ff8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x474ffc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x475000], eax
call edi
push eax
call esi
mov dword [0x475008], eax
test eax, eax
je 0x44a95f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x475004], eax
mov eax, dword [0x475004]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x44a9b8
cmp dword [0x475008], ecx
je 0x44a9b8
push eax
call esi
push dword [0x475008]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x44a9b8
test ebx, ebx
je 0x44a9b8
call edi
test eax, eax
je 0x44a9af
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x44a9af
test byte [ebp - 8], 1
jne 0x44a9b8
or dword [ebp + 0x10], 0x200000
jmp 0x44a9eb
mov eax, dword [0x474ffc]
cmp eax, dword [ebp - 0x18]
je 0x44a9eb
push eax
call esi
test eax, eax
je 0x44a9eb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x44a9eb
mov eax, dword [0x475000]
cmp eax, dword [ebp - 0x18]
je 0x44a9eb
push eax
call esi
test eax, eax
je 0x44a9eb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x474ff8]
call esi
test eax, eax
je 0x44aa07
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x44aa09
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00434c4e
leave
ret
Function at 0x402c86
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x402c95
pop dword [ebp - 0x40]
mov eax, 0x402c95
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x52725
push 0
mov eax, 0x8919f831
add eax, 0x772aba7f
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0x7da4308e
add ecx, 0x825c20e0
xor ebx, ebx
add ebx, eax
mov edi, 0xdf84ba
sub edi, 0x9826ba
add edi, dword [ebp - 0x40]
mov edx, 0x9657b526
sub edx, 0x9925a553
mov dword [ebp - 0x10], 0x5daaac13
mov esi, dword [edi]
xor dword [ebp - 0x10], 0x2ca6f4f
add esi, edx
add dword [ebp - 0x18], ebx
mov dword [ebx], esi
xor dword [ebp - 0x30], 0x9d03a515
add ebx, 0xde6f1a08
sub ebx, 0xde6f1a04
add edi, 4
loop 0x402cf1
add eax, 0x1388b
xor ebx, ebx
add ebx, eax
add eax, 0xc51faf4f
add eax, 0x3ae050b6
mov ecx, 0x242b4357
add ecx, 0xdc14bca9
add ecx, dword [ebp - 0x40]
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 0x402641
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x469034]
xor eax, esp
mov dword [esp + 0x408], eax
cmp dword [ebp + 0x1c], 0
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0xc], ecx
jne 0x4026cb
xor esi, esi
inc esi
cmp dword [ebp + 0xc], 0x110
jne 0x4026e4
push ecx
push ecx
mov ecx, edi
mov dword [edi + 0x98], esi
call fcn.004027b9
mov dword [ebx], eax
cmp dword [edi + 0x98], 0
jne 0x40270a
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
push dword [ebp + 0x14]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00401913
add esp, 0xc
test eax, eax
jne 0x40270a
push eax
push ebx
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esp + 0x20]
call fcn.00401440
test eax, eax
jne 0x40270a
xor eax, eax
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041b52d
mov esp, ebp
pop ebp
ret 0x18
cmp dword [ebp + 0xc], 0x111
mov ecx, dword [ebp + 0x10]
jne 0x402699
push 2
movzx eax, cx
pop edx
cmp dx, ax
jne 0x40270e
push edx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
xor esi, esi
inc esi
mov dword [ebx], esi
mov eax, esi
jmp 0x4026cd
cmp si, ax
jne 0x402756
push 0x400
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0041d2a0
add esp, 0xc
lea eax, [esp + 0x10]
push 0x200
push eax
push dword [edi + 0x60]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x10]
push eax
lea ecx, [edi + 0x80]
call fcn.00402e90
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x402708
push 0x4d
pop edx
cmp dx, ax
jne 0x402699
sub esp, 0x10
mov ecx, edi
call fcn.00402c32
mov dword [ebx], eax
jmp 0x40270a

Function at 0x406c18
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x44be8b
call fcn.0041be2e
mov esi, ecx
push 4
call fcn.0041b549
mov edx, dword [ebp + 8]
mov dword [ebp + 8], eax
mov dword [eax], edx
xor ebx, ebx
lea edi, [esi + 4]
push edi
push ebx
push eax
push 0x407170
push ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.00424e44
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x406c5f
mov eax, esi
call fcn.0041bdfc
ret 4
push 6
mov dword [edi], ebx
call fcn.0041a357
int3

Function at 0x407988
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
xor ebx, ebx
test ecx, ecx
je 0x4079ab
cmp word [ecx], bx
je 0x4079ab
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4079ab
push 1
test al, 0x10
movzx ebx, bl
pop ecx
cmove ebx, ecx
mov al, bl
pop ebx
ret
Function at 0x407b19
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x469034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
push 0xa
pop ecx
push dword [ebp + 8]
lea edi, [ebp - 0x2c]
mov esi, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push 0x460424
push eax
call fcn.0040609e
add esp, 0xc
lea eax, [ebp - 0x2c]
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x407bc7
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x407bc7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x407bc7
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x407bc7
lea eax, [esi + 1]
cmp eax, dword [ebx + 0x10]
ja 0x407ba7
mov dword [ebx + 0x10], eax
mov edx, ebx
cmp dword [ebx + 0x14], 0x10
jb 0x407ba0
mov edx, dword [ebx]
xor ecx, ecx
mov byte [edx + eax], cl
jmp 0x407bb3
sub eax, dword [ebx + 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.004083dd
push ecx
mov ecx, ebx
call fcn.00405edd
push esi
push edi
call fcn.00405f93
xor ecx, ecx
inc ecx
jmp 0x407bc9
xor ecx, ecx
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b52d
leave
ret

Function at 0x407bda
Capabilities:
Get file version info

Disassembly:
push 0x18
mov eax, 0x44bfe2
call fcn.0041be97
mov esi, edx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
push eax
mov dword [ebp - 0x1c], eax
call fcn.0041b7f2
pop ecx
mov edi, eax
xor eax, eax
push edi
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push eax
push ebx
mov dword [ebp - 0x14], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x407c5e
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x460330
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x407c5e
mov ax, word [ecx + 0xa]
mov word [esi], ax
mov ax, word [ecx + 8]
mov word [esi + 2], ax
mov ax, word [ecx + 0xe]
mov word [esi + 4], ax
mov ax, word [ecx + 0xc]
mov word [esi + 6], ax
xor esi, esi
inc esi
test edi, edi
je 0x407c77
push edi
call fcn.0041b7ed
pop ecx
jmp 0x407c77
mov eax, esi
call fcn.0041bdfc
ret