joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401320
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push ebp
push esi
call fcn.00401220
push esi
mov ebx, eax
call fcn.00403890
add esp, 0xc
cmp eax, 0xffffffff
jne 0x401348
pop esi
pop ebp
or eax, eax
pop ebx
ret
push edi
lea edi, [ebp + 0x12]
lea eax, [esi + 0x2068]
push edi
push eax
call fcn.00403b80
add esp, 8
mov esi, eax
push dword [ebp + 0xc]
call sub.WS2_32.dll_ntohl
mov ebp, eax
test esi, esi
jne 0x401387
push edi
push str._s_could_not_be_extracted__n
push str.fopen
call fcn.00401810
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push 1
push ebp
push ebx
call fcn.0040a44d
add esp, 0x10
cmp eax, 1
je 0x4013b8
test ebp, ebp
je 0x4013b8
push edi
push str.Failed_to_write_all_bytes_for__s_n
push str.fwrite
call fcn.00401810
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.0040968c
push ebx
call fcn.00409606
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4013d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x64
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
mov ebx, dword [esp + 0x70]
push esi
push edi
mov edi, dword [esp + 0x74]
lea esi, [esp + 0x14]
push 0
add ebx, 0xffffffa0
push ebx
push dword [edi]
call fcn.00409c98
add esp, 0xc
test eax, eax
jne 0x40143d
push dword [edi]
lea eax, [esp + 0x10]
push 1
push 0x60
push eax
call fcn.0040992e
add esp, 0x10
cmp eax, 1
jb 0x40143d
nop dword [eax]
push 8
push esi
push str.MEI_f_v_n_v
call fcn.004092b0
add esp, 0xc
test eax, eax
je 0x401452
dec esi
lea eax, [esp + 0xc]
cmp esi, eax
jae 0x401420
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00407420
add esp, 0x64
ret
movups xmm0, xmmword [esi]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [edi + 0x30], xmm0
movups xmm0, xmmword [esi + 0x30]
movups xmmword [edi + 0x40], xmm0
movups xmm0, xmmword [esi + 0x40]
movups xmmword [edi + 0x50], xmm0
movq xmm0, qword [esi + 0x50]
movq qword [edi + 0x60], xmm0
push dword [edi + 0x18]
call sub.WS2_32.dll_ntohl
lea ecx, [esp + 0xc]
sub esi, ecx
mov ecx, dword [esp + 0x6c]
add esi, ebx
sub esi, eax
xor eax, eax
add esi, 0x58
mov dword [edi + 4], esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00407420
add esp, 0x64
ret
Function at 0x401560
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi], 0
jne 0x401581
lea eax, [esi + 0x68]
push 0x4211f0
push eax
call fcn.00402640
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x4015ff
push esi
call fcn.00401120
add esp, 4
cmp eax, 1
jge 0x4015a4
push 2
push 0
push dword [esi]
call fcn.00409c98
push dword [esi]
call fcn.0040a20a
add esp, 0x10
push eax
push esi
call fcn.004013d0
add esp, 8
cmp eax, 0xffffffff
je 0x4015ff
push 0
push dword [esi + 0x1c]
mov dword [esi + 0x406c], 0
call sub.WS2_32.dll_ntohl
add eax, dword [esi + 4]
push eax
push dword [esi]
call fcn.00409c98
add esp, 0xc
push dword [esi + 0x20]
call sub.WS2_32.dll_ntohl
push eax
call fcn.0040960b
add esp, 4
mov dword [esi + 8], eax
test eax, eax
jne 0x401604
push str.Could_not_allocate_buffer_for_TOC.
push str.malloc
call fcn.00401810
add esp, 8
or eax, 0xffffffff
pop esi
ret
push dword [esi]
push 1
push dword [esi + 0x20]
call sub.WS2_32.dll_ntohl
push eax
push dword [esi + 8]
call fcn.0040992e
add esp, 0x10
cmp eax, 1
jae 0x401638
push str.Could_not_read_from_file.
push str.fread
call fcn.00401810
add esp, 8
or eax, 0xffffffff
pop esi
ret
push dword [esi + 0x20]
call sub.WS2_32.dll_ntohl
add eax, dword [esi + 8]
push dword [esi]
mov dword [esi + 0xc], eax
call fcn.00409737
add esp, 4
test eax, eax
je 0x401666
push str.Error_on_file_n.
call fcn.00401850
add esp, 4
or eax, 0xffffffff
pop esi
ret
push esi
call fcn.00401200
add esp, 4
xor eax, eax
pop esi
ret
Function at 0x403760
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.00407440
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
push ebx
push esi
mov esi, dword [esp + 0x1018]
push edi
mov edi, dword [esp + 0x1018]
push 0x4211f0
push eax
call fcn.00402640
push esi
push edi
mov ebx, eax
call fcn.00403b80
add esp, 0x10
xor edi, edi
mov esi, eax
test ebx, ebx
je 0x40385c
push ebx
test esi, esi
je 0x403861
call fcn.0040970c
add esp, 4
test eax, eax
jne 0x403833
push ebx
push 1
lea eax, [esp + 0x14]
push 0x1000
push eax
call fcn.0040992e
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4037f2
push ebx
call fcn.00409737
add esp, 4
test eax, eax
je 0x403818
push ebx
jmp 0x403828
push esi
push 1
lea eax, [esp + 0x14]
push 0x1000
push eax
call fcn.0040a44d
add esp, 0x10
test eax, eax
jle 0x403827
push esi
call fcn.00409737
add esp, 4
test eax, eax
jne 0x403827
push ebx
call fcn.0040970c
add esp, 4
test eax, eax
je 0x4037c8
jmp 0x403833
push esi
call fcn.0040f997
add esp, 4
or edi, 0xffffffff
push ebx
call fcn.0040968c
push esi
call fcn.0040968c
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.00407420
add esp, 0x1004
ret
test esi, esi
je 0x403869
push esi
call fcn.0040968c
add esp, 4
mov ecx, dword [esp + 0x100c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00407420
add esp, 0x1004
ret
Function at 0x4038e0
Capabilities:
Create directory
Get common file path
Set environment variable

Disassembly:
mov eax, 0x302c
call fcn.00407440
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x3028], eax
mov eax, dword [esp + 0x3030]
push ebx
push ebp
mov ebp, dword [esp + 0x303c]
mov dword [esp + 8], eax
push esi
push edi
test ebp, ebp
je 0x403966
push 0x422524
call fcn.00403ad0
push ebp
mov ebx, eax
lea eax, [esp + 0x3c]
push 0x1000
push eax
call fcn.004026b0
push 0
push 0x422524
push 0
call fcn.00404860
mov edi, eax
lea eax, [esp + 0x50]
push 0
push eax
push 0
call fcn.00404860
mov esi, eax
push esi
push edi
call fcn.0040e825
push edi
call fcn.00409606
push esi
call fcn.00409606
add esp, 0x38
jmp 0x40396a
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x1038]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push 0x422528
lea eax, [esp + 0x1c]
push 0x10
push eax
call fcn.004043a0
add esp, 0x10
xor esi, esi
nop dword [eax]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x103c]
push eax
call fcn.0040f97c
mov edi, eax
push edi
call fcn.0040e861
add esp, 0xc
test eax, eax
je 0x403a32
push edi
call fcn.00409606
inc esi
add esp, 4
cmp esi, 5
jl 0x4039a0
test ebp, ebp
je 0x403a2e
push 0
push 0x422524
push 0
call fcn.00404860
test ebx, ebx
je 0x403a17
push 0
push ebx
push 0
mov edi, eax
call fcn.00404860
mov esi, eax
push esi
push edi
call fcn.0040e825
push edi
call fcn.00409606
push esi
call fcn.00409606
push ebx
call fcn.00409606
add esp, 0x2c
xor eax, eax
jmp 0x403aa8
add esp, 0xc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.00409606
add esp, 4
xor eax, eax
jmp 0x403aa8
push 0x1000
push edi
push dword [esp + 0x18]
call fcn.004048f0
push edi
call fcn.00409606
add esp, 0x10
test ebp, ebp
je 0x403aa3
push 0
push 0x422524
push 0
call fcn.00404860
test ebx, ebx
je 0x403a8c
push 0
push ebx
push 0
mov edi, eax
call fcn.00404860
mov esi, eax
push esi
push edi
call fcn.0040e825
push edi
call fcn.00409606
push esi
call fcn.00409606
push ebx
call fcn.00409606
add esp, 0x2c
jmp 0x403aa3
add esp, 0xc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.00409606
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x3038]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407420
add esp, 0x302c
ret
Function at 0x403ad0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4004
call fcn.00407440
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x4000], eax
mov eax, dword [esp + 0x4008]
push 0
push eax
push 0
call fcn.00404860
add esp, 0xc
lea ecx, [esp]
push 0x2000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x403b60
push 0x2000
lea eax, [esp + 0x2004]
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
lea eax, [esp + 4]
push eax
push 0
call fcn.004048f0
add esp, 0xc
test eax, eax
je 0x403b60
cmp byte [eax], 0
je 0x403b60
push eax
call fcn.0040df14
add esp, 4
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.00407420
add esp, 0x4004
ret
mov ecx, dword [esp + 0x4000]
xor eax, eax
xor ecx, esp
call fcn.00407420
add esp, 0x4004
ret
Function at 0x403b80
Capabilities:
Create directory

Disassembly:
mov eax, 0x4034
call fcn.00407440
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x4030], eax
mov eax, dword [esp + 0x4038]
push esi
mov esi, dword [esp + 0x4040]
push 0x1000
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0040d0e0
push 0x1000
lea eax, [esp + 0x1044]
push esi
push eax
call fcn.0040d0e0
add esp, 0x18
cmp byte [esp + 0x1033], 0
jne 0x403d4a
cmp byte [esp + 0x2033], 0
jne 0x403d4a
push ebp
lea ebp, [esp + 0x38]
lea ecx, [ebp + 1]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x403bf1
push ebx
push edi
lea eax, [esp + 0x1040]
sub ebp, ecx
push 0x421400
push eax
call fcn.0040d204
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x403cf4
nop dword [eax]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403c25
sub ecx, edx
inc ebp
add ebp, ecx
cmp ebp, 0xfff
jae 0x403cd9
lea edi, [esp + 0x40]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x403c42
mov ax, word [0x421400]
mov esi, ebx
mov word [edi], ax
mov al, byte [ebx]
inc ebx
test al, al
jne 0x403c57
lea edi, [esp + 0x40]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403c65
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
push 0x421400
rep movsb byte es:[edi], byte [esi]
push 0
call fcn.0040d204
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x403cf4
push 0x1000
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x2048]
push eax
call fcn.00404860
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x2050]
push eax
call fcn.0040da6d
add esp, 0x14
test eax, eax
jns 0x403c20
lea eax, [esp + 0x2040]
push eax
call fcn.0040e861
add esp, 4
jmp 0x403c20
xor eax, eax
pop edi
pop ebx
pop ebp
pop esi
mov ecx, dword [esp + 0x4030]
xor ecx, esp
call fcn.00407420
add esp, 0x4034
ret
push 0x1000
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x2048]
push eax
call fcn.00404860
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x2050]
push eax
call fcn.0040da6d
add esp, 0x14
test eax, eax
jne 0x403d36
lea eax, [esp + 0x40]
push eax
push str.WARNING:_file_already_exists_but_should_not:__s_n
call fcn.00401850
add esp, 8
lea eax, [esp + 0x40]
push 0x4225c8
push eax
call fcn.00402640
add esp, 8
jmp 0x403cdb
mov ecx, dword [esp + 0x4034]
xor eax, eax
pop esi
xor ecx, esp
call fcn.00407420
add esp, 0x4034
ret

Function at 0x404060
Capabilities:
Set environment variable

Disassembly:
push esi
push edi
push 0
push dword [esp + 0x10]
push 0
call fcn.00404860
add esp, 0xc
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
mov esi, eax
call fcn.00409606
add esp, 4
mov eax, esi
pop edi
pop esi
ret
Function at 0x404090
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x2068
call fcn.00407440
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x2064], eax
mov eax, dword [esp + 0x206c]
push 0x1000
push eax
lea eax, [esp + 0x6c]
mov dword [esp + 8], 0
push eax
call fcn.00404860
push 1
push 0x16
call fcn.0040f411
push 1
push 2
call fcn.0040f411
push 1
push 0xf
call fcn.0040f411
push 1
push 0x15
call fcn.0040f411
add esp, 0x2c
mov dword [esp + 4], 0xc
lea eax, [esp + 0x20]
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
mov dword [esp + 0x24], 0
push 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x50], 0x101
mov word [esp + 0x54], ax
call fcn.0040a56d
push eax
call fcn.0040e53c
push eax
call fcn.0040ef79
push 1
mov dword [esp + 0x68], eax
call fcn.0040a56d
push eax
call fcn.0040e53c
push eax
call fcn.0040ef79
push 2
mov dword [esp + 0x78], eax
call fcn.0040a56d
push eax
call fcn.0040e53c
push eax
call fcn.0040ef79
add esp, 0x24
mov dword [esp + 0x60], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push 1
push 0
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4041e7
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp]
mov ecx, dword [esp + 0x2064]
xor ecx, esp
call fcn.00407420
add esp, 0x2068
ret
push str.Error_creating_child_process__n
push 0x4225ec
call fcn.004018a0
mov ecx, dword [esp + 0x206c]
add esp, 8
xor ecx, esp
or eax, 0xffffffff
call fcn.00407420
add esp, 0x2068
ret
Function at 0x412aca
Capabilities:
Read file on windows

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

Function at 0x416e13
Capabilities:
Set environment variable

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

Function at 0x416e1e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004169bc
Function at 0x403f3c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x4188d4], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x403f80
call ebx
test eax, eax
jns 0x403f76
push 0x40155c
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x401550
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x4188d0], eax
mov dword [0x4188d4], 1
mov eax, dword [0x4188d0]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x403f9c
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x403fcc
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x403fc2
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x403fb6
push dword [eax + 8]
call dword [eax]
jmp 0x403fbc
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x403fcb
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc

Function at 0x4044b9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4044e5
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4044e5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x4044e7
xor eax, eax
ret 8

Function at 0x407f0a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
push 0xd
mov edx, ecx
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x104b
push dword [edx + 4]
mov dword [ebp - 0x34], 4
call dword [sym.imp.USER32.dll_SendMessageW]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x14]
pop edi
leave
ret 4

Function at 0x407f98
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x407fe3
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 4]
call fcn.00407a1a
test eax, eax
je 0x407fe3
push 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.004079f0
jmp 0x407fe5
xor eax, eax
pop esi
leave
ret 8
Function at 0x40900f
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4146ad
call fcn.004143f0
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
and dword [ebp - 4], 0
push 0x1c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
mov byte [ebp - 4], 1
je 0x409042
mov ecx, eax
call fcn.00407856
mov ebx, eax
jmp 0x409044
xor ebx, ebx
test ebx, ebx
mov byte [ebp - 4], 0
mov dword [ebp - 0x10], ebx
jne 0x409054
or esi, 0xffffffff
jmp 0x4090b1
push edi
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
lea ecx, [esi + 0x30]
mov eax, dword [ecx + 4]
lea edx, [ebp - 0x10]
push edx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00406888
push 0xd
pop ecx
xor eax, eax
push eax
push eax
push 0x1004
push dword [esi + 4]
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x48], 4
call edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0x104d
push dword [esi + 4]
mov dword [ebp - 0x28], ebx
call edi
mov esi, eax
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x4090d0
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x4146bf
call fcn.004143f0
sub esp, 0x10
mov eax, dword [0x417020]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
and dword [ebp - 4], 0
and dword [ebp - 0x18], 0
push 1
push dword [esi + 4]
call edi
push 2
push dword [esi + 4]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
call edi
push dword [esi + 4]
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x409210
test ebx, ebx
je 0x409210
cmp dword [ebp - 0x14], 0
je 0x409210
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.004089af
test eax, eax
je 0x4091f8
push 1
push ebx
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
call ebx
push 0
push dword [ebp - 0x14]
call ebx
push 1
push dword [ebp - 0x1c]
push 0x28
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x130
push dword [esi + 4]
call edi
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
je 0x40917f
push 0
push eax
call ebx
push 0x138
push dword [esi + 4]
call edi
test eax, eax
je 0x409192
push 0
push eax
call ebx
push 0x131
push dword [esi + 4]
call edi
test eax, eax
je 0x4091a5
push 0
push eax
call ebx
push 0x139
push dword [esi + 4]
call edi
test eax, eax
je 0x4091b8
push 0
push eax
call ebx
cmp dword [ebp - 0x18], 0
lea ecx, [ebp - 0x10]
jne 0x4091c8
push 0x1f4
jmp 0x4091cd
push 0x1f5
call fcn.00405673
test eax, eax
je 0x409210
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
test edi, edi
je 0x409210
lea eax, [esi + 0x1c]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x34]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x409210
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push ebx
call edi
test byte [esi + 0x4c], 2
je 0x409210
push 1
push dword [ebp - 0x14]
call edi
lea ecx, [ebp - 0x10]
call fcn.00404c2e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4098cc
Capabilities:
Contain obfuscated stackstrings
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x418890]
push esi
push 0xf0000000
xor esi, esi
push 0x18
push esi
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x42c]
push eax
mov dword [ebp - 0x434], 0x20
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x428], esi
mov byte [ebp - 0x24], 0x9b
mov byte [ebp - 0x23], 0x6e
mov byte [ebp - 0x22], 0x3c
mov byte [ebp - 0x21], 0xf2
mov byte [ebp - 0x20], 0x39
mov byte [ebp - 0x1f], 0x27
mov byte [ebp - 0x1e], 0x4b
mov byte [ebp - 0x1d], 0xae
mov byte [ebp - 0x1c], 0x77
mov byte [ebp - 0x1b], 0xf9
mov byte [ebp - 0x1a], 0xbe
mov byte [ebp - 0x19], 2
mov byte [ebp - 0x18], 0xc8
mov byte [ebp - 0x17], 0x77
mov byte [ebp - 0x16], 0xdc
mov byte [ebp - 0x15], 0xb4
mov byte [ebp - 0x14], 0x5d
mov byte [ebp - 0x13], 0x54
mov byte [ebp - 0x12], 0xda
mov byte [ebp - 0x11], 0x1a
mov byte [ebp - 0x10], 0xfc
mov byte [ebp - 0xf], 0xba
mov byte [ebp - 0xe], 0x71
mov byte [ebp - 0xd], 0xc2
mov byte [ebp - 0xc], 0x77
mov byte [ebp - 0xb], 0x36
mov byte [ebp - 0xa], 0xca
mov byte [ebp - 9], 0x4a
mov byte [ebp - 8], 0x27
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x409a73
push ebx
push edi
lea eax, [ebp - 0x428]
push eax
push esi
push esi
push 0x800c
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4099af
xor edi, edi
jmp 0x409a62
mov edi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push esi
push 0x1d
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x428]
call edi
test eax, eax
jne 0x4099cf
xor edi, edi
jmp 0x409a56
push 0x401980
push dword [ebp + 8]
mov dword [ebp - 0x430], esi
call dword [sym.imp.msvcrt.dll__wfopen]
mov ebx, eax
cmp ebx, esi
pop ecx
pop ecx
je 0x409a36
push ebx
push 0x400
lea eax, [ebp - 0x424]
push 1
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, esi
jbe 0x409a2e
add dword [ebp - 0x430], eax
push esi
push eax
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x428]
call edi
test eax, eax
je 0x409a80
cmp dword [ebp - 0x430], 0x2000
jb 0x4099eb
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
push esi
lea eax, [ebp - 0x434]
push eax
push dword [ebp + 0xc]
push 2
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
xor edi, edi
test eax, eax
je 0x409a56
inc edi
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.004140dd
leave
ret 8
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
xor eax, eax
jmp 0x409a71