joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43764e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x18]
mov eax, dword [edi]
mov dword [ebp - 4], eax
test ebx, ebx
jne 0x437670
test eax, eax
je 0x437670
push 0x57
pop eax
jmp 0x4376f7
movzx eax, word [ebp + 0xc]
push esi
mov esi, dword [0x462988]
mov ecx, esi
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [0x465348]
call esi
mov esi, eax
test esi, esi
je 0x4376f1
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x4376f1
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, dword [ebp - 4]
jbe 0x4376bd
mov dword [edi], esi
mov eax, 0xea
jmp 0x4376f6
push dword [ebp - 8]
lfence
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4376df
push esi
push eax
push ebx
lfence
call fcn.0043baa0
add esp, 0xc
xor eax, eax
jmp 0x4376f6
mov eax, dword [edi]
xor ecx, ecx
inc ecx
cmp eax, ecx
mov dword [edi], ecx
sbb eax, eax
and eax, 0xea
jmp 0x4376f6
mov eax, 0x716
pop esi
pop edi
pop ebx
leave
ret
Function at 0x437c18
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x462060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x414]
push edi
mov edi, 0x208
push edi
push 0
push eax
call fcn.0043c020
push edi
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0043c020
add esp, 0x18
lea eax, [ebp - 0x414]
mov edi, 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x437cd8
cmp eax, edi
jae 0x437cd8
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x4067f4
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x437cd8
lea eax, [ebp - 0x20c]
push eax
call fcn.00437fdb
pop ecx
test al, al
je 0x437cbf
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
call fcn.00437fdb
pop ecx
test al, al
jne 0x437cd8
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.0041573e
push esi
call fcn.00436402
pop ecx
mov al, 1
jmp 0x437cda
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043a998
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
test eax, eax
je 0x437fd6
xor ebx, ebx
cmp word [eax], bx
je 0x437fd6
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x437fd2
test al, 0x10
jbe 0x437fd2
mov bl, 1
mov al, bl
jmp 0x437fd8
xor al, al
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
test eax, eax
je 0x438003
xor ebx, ebx
cmp word [eax], bx
je 0x438003
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x437fff
test al, 0x10
jne 0x437fff
mov bl, 1
mov al, bl
jmp 0x438005
xor al, al
pop ebx
pop ebp
ret
Function at 0x439bd5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x462060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x214]
xor ebx, ebx
push ebx
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], ebx
push eax
mov dword [ebp - 0x214], ebx
call fcn.00438430
movzx eax, byte [ebp - 0x210]
xor ecx, ecx
add esp, 0xc
cmp dword [ebp - 0x214], ecx
setne cl
shl eax, 8
or eax, ecx
cmp eax, 0x500
jb 0x439ce9
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], ebx
push eax
push dword [ebp + 8]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x439ce9
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov dword [ebp - 0x214], ebx
cmp dword [ebp - 0x210], ebx
je 0x439cbd
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x439cbd
mov ecx, dword [ebp - 0x214]
test ecx, ecx
je 0x439cbd
mov eax, dword [ecx]
push esi
push dword [ebp - 0x210]
mov esi, dword [eax + 0x14]
push ecx
mov ecx, esi
call dword [0x465348]
call esi
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x465348]
call esi
pop esi
lea edx, [ebp - 0x20c]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x439cc6
sub edx, ecx
sar edx, 1
je 0x439ce9
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.0041573e
mov al, 1
jmp 0x439d5b
lea eax, [ebp - 0x20c]
push eax
push 1
push ebx
push dword [ebp + 8]
push ebx
call fcn.00439d69
add esp, 0x14
test eax, eax
js 0x439d1d
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x439d0c
sub ecx, edx
sar ecx, 1
jne 0x439d50
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push dword [ebp + 8]
push ebx
call fcn.00439d69
add esp, 0x14
test eax, eax
js 0x439d59
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x439d3f
sub ecx, edx
sar ecx, 1
je 0x439d59
lea ecx, [ebp - 0x20c]
push ecx
jmp 0x439cde
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0043a998
leave
ret

Function at 0x43afc2
Capabilities:
Parse pe header

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

Function at 0x4476ce
Capabilities:
Read file on windows

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

Function at 0x4476d9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00447512
Function at 0x457098
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x280
mov eax, 0x45d99b
call fcn.0043aa0b
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x284], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x288], eax
test edi, edi
jne 0x4570db
test ebx, ebx
je 0x4570db
push 0x57
pop eax
jmp 0x4572d9
xor eax, eax
push 0x130
push eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x280]
push eax
call fcn.0043c020
add esp, 0xc
lea eax, [ebp - 0x25c]
lea ecx, [ebp - 0x280]
push 0
push 0x109
push eax
call fcn.00455c74
mov dword [ebp - 0x280], 0x40f1f8
and dword [ebp - 4], 0
lea eax, [ebp - 0x150]
push 0x130
push 0
push eax
call fcn.0043c020
add esp, 0xc
lea eax, [ebp - 0x12c]
lea ecx, [ebp - 0x150]
push 0
push 0x109
push eax
call fcn.00455c74
and dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x280]
push esi
mov dword [ebp - 0x150], 0x40f1f8
call fcn.00456483
mov esi, eax
test esi, esi
jne 0x4572b0
test ebx, ebx
jne 0x45719c
test edi, edi
jne 0x45719c
push eax
push eax
push dword [ebp - 0x288]
push eax
push dword [ebp - 0x270]
push dword [ebp - 0x284]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
jmp 0x4572b0
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 0x270]
push dword [ebp - 0x284]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x4572b0
cmp dword [ebp - 0x18], 2
je 0x4571f2
cmp dword [ebp - 0x18], 7
je 0x4571f2
cmp dword [ebp - 0x18], 1
je 0x4571f2
test ebx, ebx
jne 0x4571e2
mov eax, dword [ebp - 0x14]
jmp 0x4572ae
push edi
push ebx
push dword [ebp - 0x288]
push dword [ebp - 0x28c]
jmp 0x457183
push dword [ebp - 0x14]
lea ecx, [ebp - 0x150]
call fcn.004565bd
mov esi, eax
test esi, esi
jne 0x4572b0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x140]
push dword [ebp - 0x288]
push dword [ebp - 0x28c]
push dword [ebp - 0x270]
push dword [ebp - 0x284]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x4572b0
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x150]
dec eax
push eax
call fcn.00455dd8
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x150]
call fcn.00456565
mov esi, eax
test esi, esi
jne 0x4572b0
mov ecx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x1c], ecx
test ebx, ebx
jne 0x45726d
lea eax, [ecx + ecx]
jmp 0x4572ae
mov eax, dword [edi]
shr eax, 1
cmp ecx, eax
jbe 0x45727c
mov esi, 0xea
jmp 0x457268
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x150]
and dword [ebp - 0x20], 0
dec eax
push eax
call fcn.00455dd8
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x150]
call fcn.004565de
mov esi, eax
test esi, esi
jne 0x4572b0
mov eax, dword [ebp - 0x20]
add eax, eax
mov dword [edi], eax
mov ebx, 0x40f1f8
lea ecx, [ebp - 0x150]
mov dword [ebp - 0x150], ebx
call fcn.00455ccf
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x280], ebx
call fcn.00455ccf
mov eax, esi
call fcn.0043a9ba
ret 0x18
Function at 0x457a50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x457a7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x457a7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x30008405
Capabilities:
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1228
call fcn.3001599f
mov eax, dword [0x30002838]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push 0x206
mov dword [ebp - 0x121c], eax
lea eax, [ebp - 0x20a]
push ebx
push eax
mov word [ebp - 0x20c], bx
call sub.MSVCR80.dll_memset
mov edi, dword [sym.imp.MSO.dll_Ordinal_815]
add esp, 0xc
push 0x4008
mov dword [ebp - 0x1218], ebx
call edi
cmp eax, ebx
je 0x3000846f
mov ecx, eax
call fcn.3000eff5
mov dword [ebp - 0x1214], eax
jmp 0x30008475
mov dword [ebp - 0x1214], ebx
cmp dword [ebp - 0x1214], ebx
mov dword [ebp - 0x1224], ebx
mov dword [ebp - 0x1210], 0x1000
jne 0x30008494
xor eax, eax
jmp 0x3000864d
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.3000f380
test eax, eax
je 0x30008610
mov ecx, dword [ebp - 0x1214]
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.3000f002
test eax, eax
je 0x30008610
cmp word [esi], 0x1a
jne 0x300084ef
mov ecx, dword [ebp - 0x1214]
lea eax, [ebp - 0x1228]
push eax
push dword [esi + 4]
push dword [esi + 8]
call fcn.3000f067
test eax, eax
je 0x30008610
invalid
cmp word [esi], 0x42
jne 0x300085a8
mov esi, dword [esi + 8]
mov eax, dword [esi]
lea ecx, [ebp - 0x1218]
push ecx
push 0x300025d0
push esi
call dword [eax]
test eax, eax
jne 0x30008610
mov dword [ebp - 0x1210], 0x10000
push dword [ebp - 0x1210]
call edi
mov ebx, eax
test ebx, ebx
jne 0x30008571
shr dword [ebp - 0x1210], 1
cmp dword [ebp - 0x1210], 0x1000
ja 0x3000851f
lea ebx, [ebp - 0x120c]
jmp 0x30008571
cmp dword [ebp - 0x1220], 0
je 0x30008591
mov ecx, dword [ebp - 0x1214]
lea eax, [ebp - 0x1228]
push eax
push dword [ebp - 0x1220]
push ebx
call fcn.3000f067
test eax, eax
je 0x30008610
mov eax, dword [ebp - 0x1218]
mov ecx, dword [eax]
lea edx, [ebp - 0x1220]
push edx
push dword [ebp - 0x1210]
push ebx
push eax
call dword [ecx + 0xc]
test eax, eax
jge 0x30008547
jmp 0x30008610
push dword [ebp - 0x1218]
call fcn.3000f359
mov eax, dword [ebp - 0x1218]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x1214]
call fcn.3000f1d7
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 3
push dword [ebp - 0x121c]
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
mov dword [ebp - 0x1224], eax
jne 0x30008610
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x30008610
push dword [ebp - 0x121c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 3
push dword [ebp - 0x121c]
lea eax, [ebp - 0x20c]
push eax
call esi
mov dword [ebp - 0x1224], eax
mov ecx, dword [ebp - 0x1214]
push 1
call fcn.30006ed5
cmp word [ebp - 0x20c], 0
je 0x30008634
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x1210], 0x1000
jbe 0x30008647
push ebx
call fcn.30003200
pop ecx
mov eax, dword [ebp - 0x1224]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30015018
leave
ret 8
Function at 0x300158c2
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x30016328
call fcn.300158cc
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x30018978
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x30015661
cmp eax, esi
jne 0x30015654
xor esi, esi
inc esi
mov ebx, esi
jmp 0x30015664
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x3001563b
xor esi, esi
inc esi
mov eax, dword [0x30018974]
cmp eax, esi
jne 0x30015677
push 0x1f
call fcn.300a8000
pop ecx
jmp 0x300156a6
mov eax, dword [0x30018974]
test eax, eax
jne 0x300156a0
mov dword [0x30018974], esi
push 0x30001254
push 0x3000124c
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x300156a6
jmp 0x300157ce
mov dword [0x3001862c], esi
mov eax, dword [0x30018974]
cmp eax, esi
jne 0x300156ca
push 0x30001248
push 0x30001240
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x30018974], 2
test ebx, ebx
jne 0x300156d6
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x30018984], 0
je 0x300156fa
push 0x30018984
call fcn.30015c93
pop ecx
test eax, eax
je 0x300156fa
push 0
push 2
push 0
call dword [0x30018984]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x30015756
test al, al
je 0x30015714
cmp dword [ebp - 0x1c], 0
jne 0x30015756
mov al, byte [esi]
test al, al
je 0x30015724
cmp al, 0x20
ja 0x30015724
inc esi
mov dword [ebp - 0x20], esi
jmp 0x30015714
test byte [ebp - 0x3c], 1
je 0x30015730
movzx eax, word [ebp - 0x38]
jmp 0x30015733
push 0xa
pop eax
push eax
push esi
push 0
push 0x30000000
call main
mov dword [0x30018628], eax
cmp dword [0x3001861c], 0
jne 0x300157aa
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x30015765
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x30015778
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x30015701
cmp dword [0x3001862c], 0
jne 0x300157b9
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x30018628]
jmp 0x300157da
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.30015911
ret
call fcn.30014f64
jmp 0x30015601
Function at 0x10029083
Capabilities:
Print debug messages

Disassembly:
push 0x24
mov eax, 0x1002e2f7
call fcn.1002b28b
cmp byte [0x1003ce0b], 0
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], esi
jne 0x100290b0
cmp byte [0x1003ce0a], 0
je 0x100290ff
call fcn.10027bd8
test al, al
mov edx, 0x1002fbdc
mov ecx, str._in_AppContaner
cmove ecx, edx
push ecx
push str.ASM_Retrieve_retrieving_shared_memory_in_Plug_in_s
push 0x1003e608
call fcn.10027bd8
add esp, 0xc
cmp byte [0x1003ce0a], 0
je 0x100290eb
push 0x1003e608
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x100290ff
push 0x1003e608
call fcn.10005ee0
pop ecx
and dword [esi], 0
lea eax, [edi + 4]
and dword [ebx], 0
lea ecx, [ebp - 0x28]
push eax
call fcn.10027bd8
push dword [edi + 0x48]
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.100028bc
or dword [ebp - 4], 0xffffffff
mov ebx, eax
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
call fcn.10003172
test ebx, ebx
jne 0x1002917d
cmp byte [0x1003ce0b], bl
jne 0x10029149
cmp byte [0x1003ce0a], bl
je 0x100291f1
push str.ASM_Retrieve_ERROR__finding_memory_mapped_file_
mov ebx, 0x1003e608
push ebx
call fcn.10027bd8
cmp byte [0x1003ce0a], 0
pop ecx
pop ecx
je 0x1002916b
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x100291f1
push ebx
call fcn.10005ee0
pop ecx
jmp 0x100291f1
mov eax, dword [ebx]
mov esi, dword [eax + 0x20]
mov ecx, esi
call dword [0x1002f5c8]
mov ecx, ebx
call esi
mov dword [edi + 0x44], eax
test eax, eax
jne 0x100291ac
cmp byte [0x1003ce0b], al
jne 0x100291a5
cmp byte [0x1003ce0a], al
je 0x100291f1
push str.ASM_Retrieve_ERROR__getting_memory_mapped_file_handle_
jmp 0x1002914e
mov eax, dword [ebx]
push dword [edi + 0x48]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1002f5c8]
mov ecx, ebx
call esi
mov dword [edi + 0x4c], eax
test eax, eax
jne 0x100291e1
cmp byte [0x1003ce0b], al
jne 0x100291d7
cmp byte [0x1003ce0a], al
je 0x100291f1
push str.ASM_Retrieve_ERROR__mapping_for_writing_
jmp 0x1002914e
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edi + 0x48]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x30]
mov eax, dword [edi + 0x4c]
mov dword [ecx], eax
call fcn.1002b235
ret
Function at 0x402330
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit
Function at 0x4029c0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4029fd
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402a1d
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404cf4
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402bb0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404a84
test esi, esi
jne 0x402be6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404b74
jmp 0x402c04
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402ac4
mov edi, eax
test esi, esi
je 0x402c04
cmp dword [ebx], 0
je 0x402c04
dec esi
jmp 0x402bed
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403b20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x48c020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403bb8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403b98
xor eax, eax
push ebp
push 0x403b91
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403bd4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403b98
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x48c020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x48c020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404884
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48f04c], 0
je 0x4048e5
cmp word [0x48f220], 0xd7b2
jne 0x4048ad
cmp dword [0x48f228], 0
jbe 0x4048ad
mov eax, 0x48f21c
call dword [0x48f238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48c090
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40490c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48c030], 0
jne 0x404901
push 0
push 0x48c088
push 0x48c090
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404a38
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004027ac
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x48f04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404a00
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc